From 68271dcae1eae2781ed414ce31eade2f766ca251 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Tue, 16 Jan 2024 16:40:50 -0500 Subject: pass current level when creating generic ents to set level as parent ent --- editor/editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editor') diff --git a/editor/editor.cpp b/editor/editor.cpp index 6ce8f76..f676e0c 100644 --- a/editor/editor.cpp +++ b/editor/editor.cpp @@ -277,7 +277,7 @@ void PkeEditor_Tick(double delta) { if (et->createInstanceCallback.func) { reinterpret_cast(et->createInstanceCallback.func)(); } else { - EntityType_CreateGenericInstance(et, nullptr, nullptr); + EntityType_CreateGenericInstance(et, PkeLevel_Get(pkeSettings.rt.activeLevel), nullptr); } } -- cgit v1.2.3