Browse Source

* fix for bug 70

mateuszb 16 years ago
parent
commit
0ac3d9be83
1 changed files with 6 additions and 2 deletions
  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
 			}
 		}
 	}