From fa7785d024f8790a9fe501dad375ed7e5d1af211 Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Wed, 14 Aug 2019 12:56:46 -0700 Subject: [PATCH] Fix GetAreaFog --- Runtime/World/CGameArea.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/World/CGameArea.hpp b/Runtime/World/CGameArea.hpp index 232475d93..35dfb8534 100644 --- a/Runtime/World/CGameArea.hpp +++ b/Runtime/World/CGameArea.hpp @@ -288,7 +288,7 @@ public: CAssetId GetAreaAssetId() const { return x84_mrea; } const CAreaFog* GetAreaFog() const { return GetPostConstructed()->x10c4_areaFog.get(); } - CAreaFog* GetAreaFog() { return const_cast(GetAreaFog()); } + CAreaFog* GetAreaFog() { return GetPostConstructed()->x10c4_areaFog.get(); } float GetXRayFogDistance() const; EEnvFxType DoesAreaNeedEnvFx() const; bool DoesAreaNeedSkyNow() const;