From 5f112576a4c02e72c0104c69a61dba3723284bc6 Mon Sep 17 00:00:00 2001 From: ephphatha Date: Sun, 10 Oct 2021 00:13:07 +1100 Subject: [PATCH] move variable declaration into correct scope --- Source/control.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/control.cpp b/Source/control.cpp index c4c296080..d86725e14 100644 --- a/Source/control.cpp +++ b/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();