1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-25 21:38:59 +02:00
This commit is contained in:
Laserlicht 2023-10-17 21:17:57 +02:00 committed by GitHub
parent e05102192b
commit 464c65a595
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions
client/adventureMap

@ -414,7 +414,7 @@ void CTownList::CTownItem::gesture(bool on, const Point & initialPosition, const
if(!on)
return;
const std::vector<const CGTownInstance *> towns = LOCPLINT->localState->getOwnedTowns();
const std::vector<const CGTownInstance *> towns = LOCPLINT->localState->getOwnedTowns();
if(townIndex < 0 || townIndex > towns.size() - 1 || !towns[townIndex])
return;

@ -154,7 +154,7 @@ class CTownList : public CList
std::shared_ptr<CAnimImage> picture;
CTownList *parentList;
public:
int townPos;
int townIndex;
CTownItem(CTownList *parent, const CGTownInstance * town);