diff --git a/apps/openmw/mwmechanics/aiwander.cpp b/apps/openmw/mwmechanics/aiwander.cpp index 7e4d5ea7d..291d3ec73 100644 --- a/apps/openmw/mwmechanics/aiwander.cpp +++ b/apps/openmw/mwmechanics/aiwander.cpp @@ -371,7 +371,7 @@ namespace MWMechanics storage.setState(Wander_Walking, true); return; } - } while (attempts--); + } while (--attempts); } /*