mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix two memleak reports from Coverity (#12466)
This commit is contained in:
parent
4b087a0de2
commit
4163c872af
2 changed files with 3 additions and 2 deletions
|
@ -1905,7 +1905,7 @@ void Game::processKeyInput()
|
|||
if (client->modsLoaded())
|
||||
openConsole(0.2, L".");
|
||||
else
|
||||
m_game_ui->showStatusText(wgettext("Client side scripting is disabled"));
|
||||
m_game_ui->showTranslatedStatusText("Client side scripting is disabled");
|
||||
} else if (wasKeyDown(KeyType::CONSOLE)) {
|
||||
openConsole(core::clamp(g_settings->getFloat("console_height"), 0.1f, 1.0f));
|
||||
} else if (wasKeyDown(KeyType::FREEMOVE)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue