diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2024-01-16 16:40:50 -0500 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2024-01-16 16:40:50 -0500 |
| commit | 68271dcae1eae2781ed414ce31eade2f766ca251 (patch) | |
| tree | 32409554594895e7697827bb8788a4f2f18b5ac4 /editor | |
| parent | 595ca439df5c17ce402fccecf257b5fff9ef0ad0 (diff) | |
pass current level when creating generic ents to set level as parent ent
Diffstat (limited to 'editor')
| -rw-r--r-- | editor/editor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<void(*)()>(et->createInstanceCallback.func)(); } else { - EntityType_CreateGenericInstance(et, nullptr, nullptr); + EntityType_CreateGenericInstance(et, PkeLevel_Get(pkeSettings.rt.activeLevel), nullptr); } } |
