1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-05 13:45:35 +00:00

Fix walk animation fallback replace call

This commit is contained in:
Alexei Kotov 2022-06-11 03:21:14 +03:00
parent 93068d71ea
commit d4d4304f1e

View file

@ -561,7 +561,7 @@ void CharacterController::refreshMovementAnims(const std::string& weapShortGroup
std::string::size_type runpos = movementAnimName.find("run"); std::string::size_type runpos = movementAnimName.find("run");
if (runpos != std::string::npos) if (runpos != std::string::npos)
{ {
movementAnimName.replace(runpos, runpos+3, "walk"); movementAnimName.replace(runpos, 3, "walk");
if (!mAnimation->hasAnimation(movementAnimName)) if (!mAnimation->hasAnimation(movementAnimName))
movementAnimName.clear(); movementAnimName.clear();
} }