mirror of https://github.com/AxioDL/metaforce.git
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:
parent
58a2f6aeb2
commit
70c3a7ddf5
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue