mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-25 21:38:59 +02:00
fix
This commit is contained in:
parent
e05102192b
commit
464c65a595
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user