12-12-2013, 06:48 AM
STR, it might be crashing because the per-player callback is modifying the list of players while the underlying ForEachPlayer() is iterating over it. It might be a better idea to write a specialized cWorld function that moves all the players at once - effectively does something like
std::swap(m_PlayerList, LocalPlayerListVar); MoveEachPlayer(LocalPlayerListVar);