From a5acc700d6a3a9b050864cf78a0f9f2305babdff Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 15 Jan 2024 13:46:16 +0100 Subject: b --- src/world.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/world.cpp') 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 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(); -- cgit v1.2.3