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:
parent
183378e34a
commit
3baf346200
1 changed files with 1 additions and 1 deletions
|
@ -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".
|
||||
|
|
Loading…
Reference in a new issue