1
0
Fork 1
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:
scrawl 2014-09-02 04:53:24 +02:00
parent 0eb949c8a7
commit 819234cdfe
2 changed files with 3 additions and 3 deletions

View file

@ -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;
}
};

View file

@ -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: