diff --git a/apps/openmw/mwmechanics/character.cpp b/apps/openmw/mwmechanics/character.cpp index b518ead034..e3cbd3bb62 100644 --- a/apps/openmw/mwmechanics/character.cpp +++ b/apps/openmw/mwmechanics/character.cpp @@ -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::max(); // Only play "idleswim" or "idlesneak" if they exist. Otherwise, fallback to // "idle"+weapon or "idle".