summaryrefslogtreecommitdiffstats
path: root/src/core/FileLoader.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-01-23 16:29:36 +0100
committerSergeanur <s.anureev@yandex.ua>2020-01-23 16:29:36 +0100
commit9eb599ff58fcc9d3f89872a548fcf2221c65061f (patch)
tree6e25b762d26b51ed9f6778543b543c7d6b79e889 /src/core/FileLoader.cpp
parentConstructMloClumps (diff)
downloadre3-9eb599ff58fcc9d3f89872a548fcf2221c65061f.tar
re3-9eb599ff58fcc9d3f89872a548fcf2221c65061f.tar.gz
re3-9eb599ff58fcc9d3f89872a548fcf2221c65061f.tar.bz2
re3-9eb599ff58fcc9d3f89872a548fcf2221c65061f.tar.lz
re3-9eb599ff58fcc9d3f89872a548fcf2221c65061f.tar.xz
re3-9eb599ff58fcc9d3f89872a548fcf2221c65061f.tar.zst
re3-9eb599ff58fcc9d3f89872a548fcf2221c65061f.zip
Diffstat (limited to 'src/core/FileLoader.cpp')
-rw-r--r--src/core/FileLoader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/FileLoader.cpp b/src/core/FileLoader.cpp
index 50f51ecb..8fb4b4d9 100644
--- a/src/core/FileLoader.cpp
+++ b/src/core/FileLoader.cpp
@@ -656,7 +656,7 @@ CFileLoader::LoadMLO(const char *line)
CMloModelInfo *minfo = CModelInfo::AddMloModel(modelIndex);
minfo->SetName(name);
minfo->field_34 = someFloat;
- int instId = CModelInfo::GetMloInstanceStore()->allocPtr;
+ int instId = CModelInfo::GetMloInstanceStore().allocPtr;
minfo->firstInstance = instId;
minfo->lastInstance = instId;
minfo->SetTexDictionary("generic");
@@ -680,7 +680,7 @@ CFileLoader::LoadMLOInstance(int id, const char *line)
&rot.x, &rot.y, &rot.z,
&angle);
float rad = 2.0f * (PI / 2.0f - Atan2(angle, Sqrt(1.0f - SQR(angle))));
- CInstance *inst = CModelInfo::GetMloInstanceStore()->alloc();
+ CInstance *inst = CModelInfo::GetMloInstanceStore().alloc();
minfo->lastInstance++;
RwMatrix *matrix = RwMatrixCreate();