Added handling for bots without nicknames to setRandomisedGameVersionAndCategory()

This commit is contained in:
Dev 2024-09-14 14:23:45 +01:00
parent 64d4eb2cd6
commit 7bfa4f16e9

View File

@ -518,7 +518,7 @@ export class BotGenerator {
*/
protected setRandomisedGameVersionAndCategory(botInfo: Info): string {
// Special case
if (botInfo.Nickname.toLowerCase() === "nikita") {
if (botInfo.Nickname?.toLowerCase() === "nikita") {
botInfo.GameVersion = GameEditions.UNHEARD;
botInfo.MemberCategory = MemberCategory.DEVELOPER;