summaryrefslogtreecommitdiffhomepage
path: root/src/world.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-01-15 13:46:16 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-01-15 13:46:16 +0100
commita5acc700d6a3a9b050864cf78a0f9f2305babdff (patch)
treeed3c0a02b51e19b14f92535b9640673cae84f8ac /src/world.cpp
parente850be48828ce9cf4767b88707495257c98e88b0 (diff)
b
Diffstat (limited to 'src/world.cpp')
-rw-r--r--src/world.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/world.cpp b/src/world.cpp
index 7920c205..e057ffe7 100644
--- a/src/world.cpp
+++ b/src/world.cpp
@@ -3,6 +3,7 @@
#include "object.hpp"
#include "compat/int-hash.hpp"
#include "compat/exception.hpp"
+#include <Corrade/Containers/GrowableArray.h>
using namespace floormat;
@@ -65,7 +66,7 @@ world::~world() noexcept
v.mark_scenery_modified();
v.mark_passability_modified();
_last_chunk = {};
- v._objects.clear();
+ arrayResize(v._objects, 0);
}
_last_chunk = {};
_chunks.clear();