mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 18:19:55 +00:00
Use rbegin() instead of --end()
This commit is contained in:
parent
0eb949c8a7
commit
819234cdfe
2 changed files with 3 additions and 3 deletions
|
@ -35,7 +35,7 @@ namespace NifOgre
|
|||
return aLastKey->mValue + ((aKey->mValue - aLastKey->mValue) * a);
|
||||
}
|
||||
else
|
||||
return (--keys.end())->second.mValue;
|
||||
return keys.rbegin()->second.mValue;
|
||||
}
|
||||
|
||||
Ogre::Vector3 interpKey(const Nif::Vector3KeyMap::MapType &keys, float time) const
|
||||
|
@ -59,7 +59,7 @@ namespace NifOgre
|
|||
return aLastKey->mValue + ((aKey->mValue - aLastKey->mValue) * a);
|
||||
}
|
||||
else
|
||||
return (--keys.end())->second.mValue;
|
||||
return keys.rbegin()->second.mValue;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -437,7 +437,7 @@ public:
|
|||
return Ogre::Quaternion::nlerp(a, aLastKey->mValue, aKey->mValue);
|
||||
}
|
||||
else
|
||||
return (--keys.end())->second.mValue;
|
||||
return keys.rbegin()->second.mValue;
|
||||
}
|
||||
|
||||
public:
|
||||
|
|
Loading…
Reference in a new issue