mirror of https://github.com/AxioDL/metaforce.git
CScriptSpecialFunction: Remove unnecessary const_cast in AcceptScriptMsg()
This const_cast isn't required at all any more.
This commit is contained in:
parent
d131d72efa
commit
c796cf5315
|
@ -184,8 +184,7 @@ void CScriptSpecialFunction::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId
|
|||
case ESpecialFunction::MapStation: {
|
||||
if (msg == EScriptObjectMessage::Action) {
|
||||
mgr.MapWorldInfo()->SetMapStationUsed(true);
|
||||
const_cast<CMapWorld&>(*mgr.GetWorld()->GetMapWorld())
|
||||
.RecalculateWorldSphere(*mgr.MapWorldInfo(), *mgr.GetWorld());
|
||||
mgr.GetWorld()->GetMapWorld()->RecalculateWorldSphere(*mgr.MapWorldInfo(), *mgr.GetWorld());
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue