mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Fix game startup
This commit is contained in:
@@ -255,6 +255,7 @@ void CGResource::pickRandomObject(CRandomGenerator & rand)
|
||||
{
|
||||
ID = Obj::RESOURCE;
|
||||
subID = rand.nextInt(EGameResID::WOOD, EGameResID::GOLD);
|
||||
setType(ID, subID);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -735,6 +736,8 @@ void CGArtifact::pickRandomObject(CRandomGenerator & rand)
|
||||
|
||||
if (ID != Obj::SPELL_SCROLL)
|
||||
ID = MapObjectID::ARTIFACT;
|
||||
|
||||
setType(ID, subID);
|
||||
}
|
||||
|
||||
void CGArtifact::initObj(CRandomGenerator & rand)
|
||||
|
||||
Reference in New Issue
Block a user