From 30d4e4c39a277e9df4d83766cb96e2b3421ad628 Mon Sep 17 00:00:00 2001 From: Sara Date: Wed, 12 Jul 2023 02:29:33 +0200 Subject: [PATCH] replaced initialization code of _world_objects.objects with new_list --- src/corelib/world.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/world.c b/src/corelib/world.c index 2005a73..41722ff 100644 --- a/src/corelib/world.c +++ b/src/corelib/world.c @@ -23,7 +23,7 @@ int _expand_world() { return 0; } else { for(size_t i = _world_objects.num; i < new_num; ++i) { - _world_objects.objects[i] = NULL; + new_list[i] = NULL; } _world_objects.objects = new_list;