Fix return type

This commit is contained in:
Christian Semmler 2024-01-26 12:46:07 -05:00
parent 4de5484df4
commit 7413801568
3 changed files with 4 additions and 3 deletions

View File

@ -174,7 +174,7 @@ LegoUnkSaveDataWriter* GetUnkSaveDataWriter();
GifManager* GetGifManager();
void FUN_10015820(MxBool p_disable, MxU16 p_flags);
void FUN_10015860(const char*, MxU8);
LegoEntity* FindWorld(const MxAtomId& p_atom, MxS32 p_entityid);
LegoWorld* FindWorld(const MxAtomId& p_atom, MxS32 p_entityid);
MxDSAction& GetCurrentAction();
void PlayMusic(MxU32 p_index);

View File

@ -99,7 +99,8 @@ void InvokeAction(Extra::ActionType p_actionId, MxAtomId& p_pAtom, int p_targetE
// FUNCTION: LEGO1 0x1003e670
MxBool CheckIfEntityExists(MxBool p_enable, const char* p_filename, MxS32 p_entityId)
{
LegoWorld* world = (LegoWorld*) FindWorld(MxAtomId(p_filename, e_lowerCase2), p_entityId);
LegoWorld* world = FindWorld(MxAtomId(p_filename, e_lowerCase2), p_entityId);
if (world) {
world->VTable0x68(p_enable);
return TRUE;

View File

@ -219,7 +219,7 @@ void FUN_10015860(const char*, MxU8)
}
// FUNCTION: LEGO1 0x100158c0
LegoEntity* FindWorld(const MxAtomId& p_atom, MxS32 p_entityid)
LegoWorld* FindWorld(const MxAtomId& p_atom, MxS32 p_entityid)
{
return LegoOmni::GetInstance()->FindWorld(p_atom, p_entityid);
}