DEADSOFTWARE

warnings for -O3
[d2df-sdl.git] / src / game / g_monsters.pas
index 507a56024cf75640394dbe91dd3bd4ccaa45b45a..15790197f17980f45913930944a37349e8bec432 100644 (file)
@@ -1202,7 +1202,9 @@ end;
 function g_Monsters_GetNameByID(MonsterType: Byte): String;
 begin
   if MonsterType in [MONSTER_DEMON..MONSTER_MAN] then
-    Result := MONSTERTABLE[MonsterType].Name;
+    Result := MONSTERTABLE[MonsterType].Name
+  else
+    Result := '?';
 end;
 
 function g_Monsters_GetKilledBy(MonsterType: Byte): String;