mirror of
https://github.com/luanti-org/luanti.git
synced 2025-11-07 02:35:20 +01:00
Fix more GCC 8.1 warnings 1 master
Fix 3 warnings reported by GCC 8.1 of the following type ```src/client/gameui.cpp:191:43: warning: « void* memset(void*, int, size_t) » effacement d'un objet du type non trivial « struct GameUI::Flags »; use assignment or value-initialization instead [-Wclass-memaccess] memset(&m_flags, 0, sizeof(GameUI::Flags)); ```
This commit is contained in:
@@ -1014,7 +1014,8 @@ bool Game::startup(bool *kill,
|
||||
RenderingEngine::get_scene_manager()->getParameters()->
|
||||
setAttribute(scene::OBJ_LOADER_IGNORE_MATERIAL_FILES, true);
|
||||
|
||||
memset(&runData, 0, sizeof(runData));
|
||||
// Reinit runData
|
||||
runData = GameRunData();
|
||||
runData.time_from_last_punch = 10.0;
|
||||
runData.update_wielded_item_trigger = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user