CScriptSpecialFunction: Remove unnecessary const_cast in AcceptScriptMsg()

This const_cast isn't required at all any more.
This commit is contained in:
Lioncash 2020-04-09 19:55:27 -04:00
parent d131d72efa
commit c796cf5315
1 changed files with 1 additions and 2 deletions

View File

@ -184,8 +184,7 @@ void CScriptSpecialFunction::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId
case ESpecialFunction::MapStation: { case ESpecialFunction::MapStation: {
if (msg == EScriptObjectMessage::Action) { if (msg == EScriptObjectMessage::Action) {
mgr.MapWorldInfo()->SetMapStationUsed(true); mgr.MapWorldInfo()->SetMapStationUsed(true);
const_cast<CMapWorld&>(*mgr.GetWorld()->GetMapWorld()) mgr.GetWorld()->GetMapWorld()->RecalculateWorldSphere(*mgr.MapWorldInfo(), *mgr.GetWorld());
.RecalculateWorldSphere(*mgr.MapWorldInfo(), *mgr.GetWorld());
} }
break; break;
} }