mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-29 21:56:54 +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)
|
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;
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user