mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Added more checks to detect illegal access in CList's class
This commit is contained in:
@@ -66,14 +66,14 @@ public:
|
||||
const CGTownInstance * getOwnedTown(size_t index);
|
||||
void addOwnedTown(const CGTownInstance * hero);
|
||||
void removeOwnedTown(const CGTownInstance * hero);
|
||||
void swapOwnedTowns(int pos1, int pos2);
|
||||
void swapOwnedTowns(size_t pos1, size_t pos2);
|
||||
|
||||
const std::vector<const CGHeroInstance *> & getWanderingHeroes();
|
||||
const CGHeroInstance * getWanderingHero(size_t index);
|
||||
const CGHeroInstance * getNextWanderingHero(const CGHeroInstance * hero);
|
||||
void addWanderingHero(const CGHeroInstance * hero);
|
||||
void removeWanderingHero(const CGHeroInstance * hero);
|
||||
void swapWanderingHero(int pos1, int pos2);
|
||||
void swapWanderingHero(size_t pos1, size_t pos2);
|
||||
|
||||
void setPath(const CGHeroInstance * h, const CGPath & path);
|
||||
bool setPath(const CGHeroInstance * h, const int3 & destination);
|
||||
|
||||
Reference in New Issue
Block a user