Skip to content

Commit

Permalink
Fix mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
kphoenix137 committed Jan 19, 2025
1 parent 7a40603 commit c97929f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/monster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3321,7 +3321,7 @@ tl::expected<void, std::string> 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++) {
Expand Down Expand Up @@ -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<int>(ActiveMonsters[i])) // Unselect monster if player highlighted it
pcursmonst = -1;
Expand Down

0 comments on commit c97929f

Please sign in to comment.