Explorar o código

* fix for bug 70

mateuszb %!s(int64=16) %!d(string=hai) anos
pai
achega
0ac3d9be83
Modificáronse 1 ficheiros con 6 adicións e 2 borrados
  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
 			}
 		}
 	}