Duke: fixed bad loop index in gamevar init code.

This commit is contained in:
Christoph Oelckers 2023-10-03 12:54:53 +02:00
parent 8dc0505a65
commit b068a19ed9

View file

@ -266,7 +266,7 @@ void ResetGameVars(void)
{
if (aGameVars[i].dwFlags & (GAMEVAR_FLAG_PERPLAYER))
{
for (int j = 0; i < MAXPLAYERS; i++)
for (int j = 0; j < MAXPLAYERS; j++)
{
getPlayer(j)->uservars[aGameVars[i].indexValue] = aGameVars[i].defaultValue;
}