Browse Source

Make variable a const reference

Co-authored-by: Juliano Leal Goncalves <julealgon@gmail.com>
pull/3124/head
Thomas Christlieb 5 years ago committed by Anders Jenbo
parent
commit
e5f5c4ef0c
  1. 2
      Source/monster.cpp

2
Source/monster.cpp

@ -778,7 +778,7 @@ void LoadDiabMonsts()
void DeleteMonster(int i)
{
auto monster = Monsters[ActiveMonsters[i]];
const auto &monster = Monsters[ActiveMonsters[i]];
if ((monster._mFlags & MFLAG_BERSERK) != 0) {
AddUnLight(monster.mlid);
}

Loading…
Cancel
Save