mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Remove few more implicit conversions
This commit is contained in:
@@ -1971,9 +1971,9 @@ void HeroVisit::applyGs(CGameState *gs)
|
||||
|
||||
void SetAvailableArtifacts::applyGs(CGameState * gs) const
|
||||
{
|
||||
if(id >= 0)
|
||||
if(id != ObjectInstanceID::NONE)
|
||||
{
|
||||
if(auto * bm = dynamic_cast<CGBlackMarket *>(gs->map->objects[id].get()))
|
||||
if(auto * bm = dynamic_cast<CGBlackMarket *>(gs->getObjInstance(id)))
|
||||
{
|
||||
bm->artifacts = arts;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user