mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-03 13:01:33 +02:00
Update client/adventureMap/CList.cpp
Co-authored-by: Nordsoft91 <nordsoft@yahoo.com>
This commit is contained in:
parent
aeb559efb8
commit
f3262a47c0
@ -374,11 +374,11 @@ void CTownList::CTownItem::gesture(bool on, const Point & initialPosition, const
|
||||
if(!on)
|
||||
return;
|
||||
|
||||
if(!LOCPLINT->localState->getOwnedTowns()[townPos])
|
||||
return;
|
||||
|
||||
const std::vector<const CGTownInstance *> towns = LOCPLINT->localState->getOwnedTowns();
|
||||
|
||||
if(townPos < 0 || townPos > towns.size() - 1 || !towns[townPos])
|
||||
return;
|
||||
|
||||
if(towns.size() < 2)
|
||||
return;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user