diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-06 13:42:41 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-06 13:42:41 +0200 |
commit | 8c036ec671f51a6957f0ac57daf8897ce5fa0925 (patch) | |
tree | b05bf852327cc5442e9bacbb7e2fb1e66bc3ea4a /src/core/FileLoader.cpp | |
parent | Merge remote-tracking branch 'upstream/miami' into miami (diff) | |
parent | Fix appveyor (diff) | |
download | re3-8c036ec671f51a6957f0ac57daf8897ce5fa0925.tar re3-8c036ec671f51a6957f0ac57daf8897ce5fa0925.tar.gz re3-8c036ec671f51a6957f0ac57daf8897ce5fa0925.tar.bz2 re3-8c036ec671f51a6957f0ac57daf8897ce5fa0925.tar.lz re3-8c036ec671f51a6957f0ac57daf8897ce5fa0925.tar.xz re3-8c036ec671f51a6957f0ac57daf8897ce5fa0925.tar.zst re3-8c036ec671f51a6957f0ac57daf8897ce5fa0925.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 fee15a04..9e7423f4 100644 --- a/src/core/FileLoader.cpp +++ b/src/core/FileLoader.cpp @@ -1139,7 +1139,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()); entity->m_area = area; if(mi->IsSimple()){ if(mi->m_isBigBuilding) @@ -1165,7 +1165,7 @@ CFileLoader::LoadObjectInstance(const char *line) CWorld::Add(entity); if(IsGlass(entity->GetModelIndex()) && !mi->m_isArtistGlass) entity->bIsVisible = false; - entity->m_level = CTheZones::GetLevelFromPosition(entity->GetPosition()); + entity->m_level = CTheZones::GetLevelFromPosition(&entity->GetPosition()); entity->m_area = area; } |