diff --git a/include/MetroidPrime/ScriptObjects/CScriptDistanceFog.hpp b/include/MetroidPrime/ScriptObjects/CScriptDistanceFog.hpp index b07618ee..b0ec93d8 100644 --- a/include/MetroidPrime/ScriptObjects/CScriptDistanceFog.hpp +++ b/include/MetroidPrime/ScriptObjects/CScriptDistanceFog.hpp @@ -4,6 +4,7 @@ #include "MetroidPrime/CEntity.hpp" #include "MetroidPrime/CAreaFog.hpp" +#include "MetroidPrime/CGameArea.hpp" class CScriptDistanceFog : public CEntity { ERglFogMode x34_mode; diff --git a/src/MetroidPrime/ScriptObjects/CScriptDistanceFog.cpp b/src/MetroidPrime/ScriptObjects/CScriptDistanceFog.cpp index d1de0d41..4e3a11fe 100644 --- a/src/MetroidPrime/ScriptObjects/CScriptDistanceFog.cpp +++ b/src/MetroidPrime/ScriptObjects/CScriptDistanceFog.cpp @@ -38,7 +38,7 @@ void CScriptDistanceFog::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId obj switch (msg) { case kSM_InitializedInArea: if (x60_explicit) { - CAreaFog* fog = stateMgr.World()->Area(GetCurrentAreaId())->AreaFog(); + CGameArea::CAreaFog* fog = stateMgr.World()->Area(GetCurrentAreaId())->AreaFog(); if (x34_mode == kRFM_None) { fog->DisableFog(); } else { @@ -48,7 +48,7 @@ void CScriptDistanceFog::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId obj break; case kSM_Action: if (x61_nonZero) { - CAreaFog* fog = stateMgr.World()->Area(GetCurrentAreaId())->AreaFog(); + CGameArea::CAreaFog* fog = stateMgr.World()->Area(GetCurrentAreaId())->AreaFog(); if (x34_mode != kRFM_None) { fog->FadeFog(x34_mode, x38_color, x3c_range, x44_colorDelta, x48_rangeDelta); } else {