summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/sord.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sord.c b/src/sord.c
index 557e11d..19e11cd 100644
--- a/src/sord.c
+++ b/src/sord.c
@@ -714,6 +714,9 @@ sord_node_free_internal(SordWorld* world, SordNode* node)
{
assert(node->refs == 0);
+ // If you hit this, the world has probably been destroyed too early
+ assert(world);
+
// Cache pointer to buffer to free after node removal and destruction
const uint8_t* const buf = node->node.buf;