From c796cf5315479c5057aae7e29a92b649bb20b14a Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 9 Apr 2020 19:55:27 -0400 Subject: [PATCH] CScriptSpecialFunction: Remove unnecessary const_cast in AcceptScriptMsg() This const_cast isn't required at all any more. --- Runtime/World/CScriptSpecialFunction.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Runtime/World/CScriptSpecialFunction.cpp b/Runtime/World/CScriptSpecialFunction.cpp index 29cf53849..460612f5a 100644 --- a/Runtime/World/CScriptSpecialFunction.cpp +++ b/Runtime/World/CScriptSpecialFunction.cpp @@ -184,8 +184,7 @@ void CScriptSpecialFunction::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId case ESpecialFunction::MapStation: { if (msg == EScriptObjectMessage::Action) { mgr.MapWorldInfo()->SetMapStationUsed(true); - const_cast(*mgr.GetWorld()->GetMapWorld()) - .RecalculateWorldSphere(*mgr.MapWorldInfo(), *mgr.GetWorld()); + mgr.GetWorld()->GetMapWorld()->RecalculateWorldSphere(*mgr.MapWorldInfo(), *mgr.GetWorld()); } break; }