diff --git a/apps/openmw/mwmechanics/aiwander.cpp b/apps/openmw/mwmechanics/aiwander.cpp index ac39fe94d..71159b94b 100644 --- a/apps/openmw/mwmechanics/aiwander.cpp +++ b/apps/openmw/mwmechanics/aiwander.cpp @@ -41,7 +41,5 @@ int MWMechanics::AiWander::getIdle(int index) const { if(index < 0 || (uint)index > mIdle.size()) return -1; - int temp; - temp = mIdle.at(index); - return temp; + return mIdle.at(index); }