Przeglądaj źródła

Possible fix for https://bugs.vcmi.eu/view.php?id=2678

AlexVinS 8 lat temu
rodzic
commit
f370cdf1c7
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      client/windows/CSpellWindow.cpp

+ 3 - 3
client/windows/CSpellWindow.cpp

@@ -705,10 +705,10 @@ void CSpellWindow::SpellArea::clickLeft(tribool down, bool previousState)
 						}
 					}
 
-					auto castTownPortal = [this, h](int townId)
+					auto castTownPortal = [h](int townId)
 					{
-						const CGTownInstance * dest = owner->myInt->cb->getTown(ObjectInstanceID(townId));
-						owner->myInt->cb->castSpell(h, SpellID::TOWN_PORTAL, dest->visitablePos());
+						const CGTownInstance * dest = LOCPLINT->cb->getTown(ObjectInstanceID(townId));
+						LOCPLINT->cb->castSpell(h, SpellID::TOWN_PORTAL, dest->visitablePos());
 					};
 
 					if (availableTowns.empty())