mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
crashfix: prevent division by zero when spawning too many bots
This commit is contained in:
@@ -69,4 +69,6 @@ static inline void InitBotNames()
|
||||
PlayerBotNames.push_back(L"AllyJax");
|
||||
PlayerBotNames.push_back(L"secret_pommes");
|
||||
PlayerBotNames.push_back(L"Twin1");
|
||||
|
||||
std::shuffle(PlayerBotNames.begin(), PlayerBotNames.end(), std::default_random_engine((unsigned int)time(0)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user