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: {
|
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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue