mirror of https://github.com/AxioDL/metaforce.git
Fix crash in CAutoMapper
This commit is contained in:
parent
0e08cb5461
commit
72b5706400
|
@ -217,6 +217,7 @@ bool CAutoMapper::CheckDummyWorldLoad(CStateManager& mgr) {
|
||||||
xa0_curAreaId = aid;
|
xa0_curAreaId = aid;
|
||||||
|
|
||||||
dummyWorld->IGetMapWorld()->RecalculateWorldSphere(mwInfo, *dummyWorld);
|
dummyWorld->IGetMapWorld()->RecalculateWorldSphere(mwInfo, *dummyWorld);
|
||||||
|
x24_world = dummyWorld.get();
|
||||||
BeginMapperStateTransition(EAutoMapperState::MapScreen, mgr);
|
BeginMapperStateTransition(EAutoMapperState::MapScreen, mgr);
|
||||||
x32c_loadingDummyWorld = false;
|
x32c_loadingDummyWorld = false;
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -128,7 +128,7 @@ private:
|
||||||
ELoadPhase x4_loadPhase = ELoadPhase::LoadResources;
|
ELoadPhase x4_loadPhase = ELoadPhase::LoadResources;
|
||||||
TLockedToken<CMapUniverse> x8_mapu;
|
TLockedToken<CMapUniverse> x8_mapu;
|
||||||
std::vector<std::unique_ptr<IWorld>> x14_dummyWorlds;
|
std::vector<std::unique_ptr<IWorld>> x14_dummyWorlds;
|
||||||
CWorld* x24_world;
|
IWorld* x24_world;
|
||||||
TLockedToken<CGuiFrame> x28_frmeMapScreen; // Used to be ptr
|
TLockedToken<CGuiFrame> x28_frmeMapScreen; // Used to be ptr
|
||||||
bool m_frmeInitialized = false;
|
bool m_frmeInitialized = false;
|
||||||
TLockedToken<CModel> x30_miniMapSamus;
|
TLockedToken<CModel> x30_miniMapSamus;
|
||||||
|
|
Loading…
Reference in New Issue