mirror of
https://github.com/edubart/otclient.git
synced 2025-10-16 04:24:54 +02:00
Improve clicking on walking creatures
This commit is contained in:
@@ -769,7 +769,7 @@ void Game::attack(const CreaturePtr& creature)
|
||||
if(!canPerformGameAction() || creature == m_localPlayer)
|
||||
return;
|
||||
|
||||
if(creature == m_attackingCreature) {
|
||||
if(creature && creature == m_attackingCreature) {
|
||||
cancelAttack();
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user