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 /src/game.cpp | |
| parent | 595ca439df5c17ce402fccecf257b5fff9ef0ad0 (diff) | |
pass current level when creating generic ents to set level as parent ent
Diffstat (limited to 'src/game.cpp')
| -rw-r--r-- | src/game.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp index 5c43042..00e7edc 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -262,7 +262,7 @@ void ParseInstance(Entity_Base *parentEntity, std::ifstream &stream) { if (etPtr->createInstanceCallback.func != nullptr) { reinterpret_cast<void(*)()>(etPtr->createInstanceCallback.func)(); } else { - EntityType_CreateGenericInstance(etPtr, &comp, &instPos); + EntityType_CreateGenericInstance(etPtr, parentEntity, &comp, &instPos); fprintf(stdout ,"[Game::ParseInstance] No callback func to create instance."); } break; |
