mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-10 12:39:53 +00:00
Use numeric_limits for indefinite idle looping
This commit is contained in:
parent
183378e34a
commit
3baf346200
@ -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…
x
Reference in New Issue
Block a user