From 9eb599ff58fcc9d3f89872a548fcf2221c65061f Mon Sep 17 00:00:00 2001 From: Sergeanur Date: Thu, 23 Jan 2020 17:29:36 +0200 Subject: Plane crashfix and more --- src/core/FileLoader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core') 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(); -- cgit v1.2.3