浏览代码

* fix for bug 70

mateuszb 16 年之前
父节点
当前提交
0ac3d9be83
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 6 2
      client/CBattleInterface.cpp

+ 6 - 2
client/CBattleInterface.cpp

@@ -2445,9 +2445,13 @@ void CBattleInterface::hexLclicked(int whichOne)
 					}
 				}
 
-				giveCommand(6, attackFromHex, activeStack, whichOne);
+				if(attackFromHex >= 0) //we can be in this line when unreachable creature is L - clicked (as of revision 1308)
+				{
+					giveCommand(6, attackFromHex, activeStack, whichOne);
+					
+					CGI->curh->changeGraphic(1, 6); //cursor should be changed
+				}
 
-				CGI->curh->changeGraphic(1, 6); //cursor should be changed
 			}
 		}
 	}