fix: resolve compiler warnings in lua_engine and game_screen

Remove unused getPlayerUnit() helper in lua_engine.cpp (-Wunused-function).
Increase countStr buffer from 8 to 16 bytes in action bar item count
display to eliminate -Wformat-truncation warning for %d with int32_t.
Build is now warning-free.
This commit is contained in:
Kelsi 2026-03-20 15:53:43 -07:00
parent 4b6ed04926
commit d1bcd2f844
2 changed files with 1 additions and 10 deletions

View file

@ -9412,7 +9412,7 @@ void GameScreen::renderActionBar(game::GameHandler& gameHandler) {
}
}
if (totalCount > 0) {
char countStr[8];
char countStr[16];
snprintf(countStr, sizeof(countStr), "%d", totalCount);
ImVec2 btnMax = ImGui::GetItemRectMax();
ImVec2 tsz = ImGui::CalcTextSize(countStr);