Prevent bots from taking slot 0 with lua.

This commit is contained in:
Blur 2024-06-09 16:33:24 -05:00
parent 332445ae55
commit 60eb9fdb44

View file

@ -3878,7 +3878,7 @@ static int lib_gAddPlayer(lua_State *L)
player_t *newplayer;
SINT8 skinnum = 0, bot;
for (i = 0; i < MAXPLAYERS; i++)
for (i = 1; i < MAXPLAYERS; i++)
{
if (!playeringame[i])
break;