mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
Fix loading of SoD & later maps
This commit is contained in:
@@ -946,4 +946,10 @@ void CMap::saveCompatibilityAddMissingArtifact(std::shared_ptr<CArtifactInstance
|
||||
artInstances.push_back(artifact);
|
||||
}
|
||||
|
||||
ObjectInstanceID CMap::allocateUniqueInstanceID()
|
||||
{
|
||||
objects.push_back(nullptr);
|
||||
return ObjectInstanceID(objects.size() - 1);
|
||||
}
|
||||
|
||||
VCMI_LIB_NAMESPACE_END
|
||||
|
||||
Reference in New Issue
Block a user