minor fixes to errors mentioned

This commit is contained in:
jenz
2023-09-02 16:20:31 +02:00
parent be2c2797ab
commit a4b527ea22
2 changed files with 12 additions and 1 deletions
@@ -1878,6 +1878,15 @@ NominateResult InternalNominateMap(char[] map, int owner)
}
}
if (g_NominateList[owner] == INVALID_HANDLE)
{
if (IsClientConnected(owner) && IsClientInGame(owner))
{
ReplyToCommand(owner, "This should be invalid.");
}
return Nominate_InvalidMap;
}
PushArrayString(g_NominateList[owner], map);
PushArrayCell(g_NominateOwners, owner); //maybe i only want to do this for the first nomination of each client
if(owner == 0 && g_NominateReservedCount < GetVoteSize(1))