diff --git a/Source/monster.cpp b/Source/monster.cpp index f7e0ef3e9c3..c0c45e68c94 100644 --- a/Source/monster.cpp +++ b/Source/monster.cpp @@ -3321,7 +3321,7 @@ tl::expected GetLevelMTypes() RETURN_IF_ERROR(AddMonsterType(skeltypes[GenerateRnd(skeletonTypeCount)], PLACE_SCATTER)); } - std::vector<_monster_id> typelist(MaxMonsters); + _monster_id typelist[MaxMonsters]; int nt = 0; for (int i = MT_NZOMBIE; i < NUM_MTYPES; i++) { @@ -4031,7 +4031,7 @@ void DeleteMonsterList() golem.isInvalid = false; } - for (size_t i = MaxPlayers; i < ActiveMonsterCount;) { + for (size_t i = maxPlayers; i < ActiveMonsterCount;) { if (Monsters[ActiveMonsters[i]].isInvalid) { if (pcursmonst == static_cast(ActiveMonsters[i])) // Unselect monster if player highlighted it pcursmonst = -1;