2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-06-05 07:53:29 +00:00

CScriptGunTurret: Remove unnecessary data() call in AcceptScriptMsg()

We can use append() instead of data(). This allows the size of the
string view instance to be used directly instead of redundantly doing a
string size lookup.
This commit is contained in:
Lioncash 2020-03-03 06:30:18 -05:00
parent 58a2f6aeb2
commit 70c3a7ddf5

View File

@ -174,7 +174,7 @@ void CScriptGunTurret::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId uid,
if (x478_targettingLight->SystemHasLight()) {
x498_lightId = mgr.AllocateUniqueId();
mgr.AddObject(new CGameLight(x498_lightId, GetAreaIdAlways(), GetActive(),
std::string("ParticleLight_") + GetName().data(), GetTransform(), GetUniqueId(),
std::string("ParticleLight_").append(GetName()), GetTransform(), GetUniqueId(),
x478_targettingLight->GetLight(), 0, 1, 0.f));
}
SetupCollisionManager(mgr);