diff options
author | sfan5 <sfan5@live.de> | 2021-12-05 14:40:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-05 14:40:30 +0100 |
commit | ff934d538c00518476c31f5df6ebc4be5ca79591 (patch) | |
tree | f4e261ef192fe4410fc1f5e56e04d8c7645d92dc /src/settings.cpp | |
parent | 7a043b3ebbbf250890f39a9afecebba1cc9826a6 (diff) | |
download | minetest-ff934d538c00518476c31f5df6ebc4be5ca79591.tar.gz minetest-ff934d538c00518476c31f5df6ebc4be5ca79591.tar.bz2 minetest-ff934d538c00518476c31f5df6ebc4be5ca79591.zip |
Fix various code & correctness issues (#11815)
Diffstat (limited to 'src/settings.cpp')
-rw-r--r-- | src/settings.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/settings.cpp b/src/settings.cpp index 818d2bc41..cf7ec1b72 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -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; |