diff options
author | aap <aap@papnet.eu> | 2020-05-06 12:23:26 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-05-06 12:23:26 +0200 |
commit | cbfc45b3f72468e7880bec852773955d3886b5ff (patch) | |
tree | b1c472a41e7b50d1950e37c8d27d1eb9531ca57d /src/core/FileLoader.cpp | |
parent | reverting fuckup (diff) | |
download | re3-cbfc45b3f72468e7880bec852773955d3886b5ff.tar re3-cbfc45b3f72468e7880bec852773955d3886b5ff.tar.gz re3-cbfc45b3f72468e7880bec852773955d3886b5ff.tar.bz2 re3-cbfc45b3f72468e7880bec852773955d3886b5ff.tar.lz re3-cbfc45b3f72468e7880bec852773955d3886b5ff.tar.xz re3-cbfc45b3f72468e7880bec852773955d3886b5ff.tar.zst re3-cbfc45b3f72468e7880bec852773955d3886b5ff.zip |
Diffstat (limited to 'src/core/FileLoader.cpp')
-rw-r--r-- | src/core/FileLoader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/FileLoader.cpp b/src/core/FileLoader.cpp index a2654369..25c43778 100644 --- a/src/core/FileLoader.cpp +++ b/src/core/FileLoader.cpp @@ -1088,7 +1088,7 @@ CFileLoader::LoadObjectInstance(const char *line) entity = new CBuilding; entity->SetModelIndexNoCreate(id); entity->GetMatrix() = CMatrix(xform); - entity->m_level = CTheZones::GetLevelFromPosition(entity->GetPosition()); + entity->m_level = CTheZones::GetLevelFromPosition(&entity->GetPosition()); if(mi->IsSimple()){ if(mi->m_isBigBuilding) entity->SetupBigBuilding(); @@ -1105,7 +1105,7 @@ CFileLoader::LoadObjectInstance(const char *line) CWorld::Add(entity); if(IsGlass(entity->GetModelIndex())) entity->bIsVisible = false; - entity->m_level = CTheZones::GetLevelFromPosition(entity->GetPosition()); + entity->m_level = CTheZones::GetLevelFromPosition(&entity->GetPosition()); } RwMatrixDestroy(xform); |