From ea5e1d66cefb4c3cad4119414fb0f6d9f4f7ab4d Mon Sep 17 00:00:00 2001 From: Henrique Gemignani Passos Lima Date: Mon, 7 Nov 2022 14:39:00 +0200 Subject: [PATCH] Fix build --- include/MetroidPrime/ScriptObjects/CScriptDistanceFog.hpp | 1 + src/MetroidPrime/ScriptObjects/CScriptDistanceFog.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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 {