diff --git a/apps/openmw/mwscript/aiextensions.cpp b/apps/openmw/mwscript/aiextensions.cpp index 24fc58ef6..9f29163af 100644 --- a/apps/openmw/mwscript/aiextensions.cpp +++ b/apps/openmw/mwscript/aiextensions.cpp @@ -183,7 +183,7 @@ namespace MWScript std::vector idleList; bool repeat = false; - for(short i=1; i < 10 && arg0; ++i) + for(int i=1; i < 10 && arg0; ++i) { if(!repeat) repeat = true; @@ -195,7 +195,7 @@ namespace MWScript if(arg0) { - repeat = runtime[0].mInteger; + repeat = runtime[0].mInteger != 0; runtime.pop(); --arg0; }