diff --git a/Source/debug.cpp b/Source/debug.cpp index 4055572ef..ccab74132 100644 --- a/Source/debug.cpp +++ b/Source/debug.cpp @@ -829,6 +829,11 @@ bool GetDebugGridText(Point dungeonCoords, char *debugGridTextBuffer) case DebugGridTextItem::dSpecial: info = dSpecial[dungeonCoords.x][dungeonCoords.y]; break; + case DebugGridTextItem::dObject: + info = dObject[dungeonCoords.x][dungeonCoords.y]; + break; + case DebugGridTextItem::None: + return false; } if (info == 0) return false; diff --git a/Source/items.cpp b/Source/items.cpp index ce76cd3eb..7b7f8c3a0 100644 --- a/Source/items.cpp +++ b/Source/items.cpp @@ -4645,6 +4645,8 @@ void SpawnBoy(int lvl) ivalue = mostValuablePlayerItem == nullptr ? 0 : mostValuablePlayerItem->_iIvalue; break; } + default: + app_fatal("Invalid item spawn"); } ivalue = ivalue * 4 / 5; // avoids forced int > float > int conversion