Browse Source

monster: add BUGFIX for DeleteMonsterList

Golems should only be pseudo deleted, as their monster array
indices are special and should not appear in the available
monster index list.
pull/2283/head
Robin Eklind 5 years ago committed by Anders Jenbo
parent
commit
9e489df41d
  1. 2
      Source/monster.cpp

2
Source/monster.cpp

@ -5502,7 +5502,7 @@ void DeleteMonsterList()
while (i < nummonsters) {
if (monster[monstactive[i]]._mDelFlag) {
DeleteMonster(i);
i = 0; // TODO: check if this should be MAX_PLRS.
i = 0; // BUGFIX: should be `i = MAX_PLRS`, was 0 (only pseudo delete golems, their monster array indices are special and should not appear in the available monster index list).
} else {
i++;
}

Loading…
Cancel
Save