mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix various code & correctness issues (#11815)
This commit is contained in:
parent
7a043b3ebb
commit
ff934d538c
8 changed files with 30 additions and 37 deletions
|
@ -88,7 +88,7 @@ void SettingsHierarchy::onLayerCreated(int layer, Settings *obj)
|
|||
|
||||
void SettingsHierarchy::onLayerRemoved(int layer)
|
||||
{
|
||||
assert(layer >= 0 && layer < layers.size());
|
||||
assert(layer >= 0 && layer < (int)layers.size());
|
||||
layers[layer] = nullptr;
|
||||
if (this == &g_hierarchy && layer == (int)SL_GLOBAL)
|
||||
g_settings = nullptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue