mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 19:19:56 +00:00
Avoid creating temp strings when looking for an animation stop key
This commit is contained in:
parent
b770c1493f
commit
917a3b5dff
1 changed files with 1 additions and 1 deletions
|
@ -793,7 +793,7 @@ namespace MWRender
|
|||
// We have to ignore extra garbage at the end.
|
||||
// The Scrib's idle3 animation has "Idle3: Stop." instead of "Idle3: Stop".
|
||||
// Why, just why? :(
|
||||
&& (stopkey->second.size() < stoptag.size() || stopkey->second.substr(0,stoptag.size()) != stoptag))
|
||||
&& (stopkey->second.size() < stoptag.size() || stopkey->second.compare(0,stoptag.size(), stoptag) != 0))
|
||||
++stopkey;
|
||||
if(stopkey == keys.rend())
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue