Browse Source

move variable declaration into correct scope

pull/3355/head
ephphatha 4 years ago committed by Anders Jenbo
parent
commit
5f112576a4
  1. 2
      Source/control.cpp

2
Source/control.cpp

@ -1388,8 +1388,8 @@ void DrawInfoBox(const Surface &out)
else if (pcursobj != -1)
GetObjectStr(pcursobj);
if (pcursmonst != -1) {
const auto &monster = Monsters[pcursmonst];
if (leveltype != DTYPE_TOWN) {
const auto &monster = Monsters[pcursmonst];
InfoColor = UiFlags::ColorWhite;
strcpy(infostr, monster.mName);
ClearPanel();

Loading…
Cancel
Save