mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
revert handlers
This commit is contained in:
@@ -74,7 +74,8 @@ std::vector<GameResID> ResourceTypeHandler::getAllObjects() const
|
||||
std::vector<GameResID> result;
|
||||
|
||||
for (const auto & resource : objects)
|
||||
result.push_back(resource->getId());
|
||||
if(resource)
|
||||
result.push_back(resource->getId());
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user