mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
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:
parent
4b6ed04926
commit
d1bcd2f844
2 changed files with 1 additions and 10 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue