1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-29 21:56:54 +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

View File

@ -414,7 +414,7 @@ void CTownList::CTownItem::gesture(bool on, const Point & initialPosition, const
if(!on) if(!on)
return; 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]) if(townIndex < 0 || townIndex > towns.size() - 1 || !towns[townIndex])
return; return;

View File

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