mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
Cpp11 initializers 2 (#5999)
* C++11 patchset 10: continue cleanup on constructors * Drop obsolete bool MainMenuData::enable_public (setting is called with cURL in server loop) * More classes cleanup * More classes cleanup + change NULL tests to boolean tests
This commit is contained in:
@@ -323,7 +323,7 @@ GUIEngine::~GUIEngine()
|
||||
|
||||
//clean up texture pointers
|
||||
for (unsigned int i = 0; i < TEX_LAYER_MAX; i++) {
|
||||
if (m_textures[i].texture != NULL)
|
||||
if (m_textures[i].texture)
|
||||
driver->removeTexture(m_textures[i].texture);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user