浏览代码

Fixed bug 186.

Frank Zago 16 年之前
父节点
当前提交
218194c36e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      client/GUIClasses.cpp

+ 1 - 1
client/GUIClasses.cpp

@@ -1393,7 +1393,7 @@ void CHeroList::updateMove(const CGHeroInstance* which) //draws move points bar
 		if(heroes[i]->subID == which->subID)
 			ser = i;
 	ser -= from;
-	if(ser<0 || ser > SIZE) return;
+	if(ser<0 || ser >= SIZE) return;
 	int pom = std::min((which->movement)/100,(si32)mobile->ourImages.size()-1);
 	blitAt(mobile->ourImages[pom].bitmap,posmobx,posmoby+ser*32); //move point
 }