mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
lib now uses shared_ptr for entities. Removed manual memory management.
This commit is contained in:
@ -725,7 +725,7 @@ CGCreature * ObjectManager::chooseGuard(si32 strength, bool zoneGuard)
|
||||
CreatureID creId = CreatureID::NONE;
|
||||
int amount = 0;
|
||||
std::vector<CreatureID> possibleCreatures;
|
||||
for(auto cre : VLC->creh->objects)
|
||||
for(auto const & cre : VLC->creh->objects)
|
||||
{
|
||||
if(cre->special)
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user