1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 08:23:53 +00:00

Use numeric_limits for indefinite idle looping

This commit is contained in:
Alexei Kotov 2022-06-19 08:58:12 +03:00
parent 183378e34a
commit 3baf346200

View file

@ -681,7 +681,7 @@ void CharacterController::refreshIdleAnims(CharacterState idle, bool force)
}
MWRender::Animation::AnimPriority priority = getIdlePriority(mIdleState);
size_t numLoops = ~0ul;
size_t numLoops = std::numeric_limits<size_t>::max();
// Only play "idleswim" or "idlesneak" if they exist. Otherwise, fallback to
// "idle"+weapon or "idle".