1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

Fix build

This commit is contained in:
Ivan Savenko 2023-06-16 18:11:45 +03:00
parent 5118a642bc
commit ece9982ca0
3 changed files with 3 additions and 3 deletions

View File

@ -452,7 +452,7 @@ void CGHeroInstance::onHeroVisit(const CGHeroInstance * h) const
//Create a new boat for hero //Create a new boat for hero
NewObject no; NewObject no;
no.ID = Obj::BOAT; no.ID = Obj::BOAT;
no.subID = BoatId(EBoatId::BOAT_NEUTRAL); no.subID = BoatId(EBoatId::CASTLE);
no.pos = CGBoat::translatePos(boatPos); no.pos = CGBoat::translatePos(boatPos);
cb->sendAndApply(&no); cb->sendAndApply(&no);

View File

@ -215,7 +215,7 @@ ESpellCastResult SummonBoatMechanics::applyAdventureEffects(SpellCastEnvironment
{ {
NewObject no; NewObject no;
no.ID = Obj::BOAT; no.ID = Obj::BOAT;
no.subID = BoatId(EBoatId::BOAT_EVIL); no.subID = BoatId(EBoatId::NECROPOLIS);
no.pos = CGBoat::translatePos(summonPos); no.pos = CGBoat::translatePos(summonPos);
env->apply(&no); env->apply(&no);
} }

View File

@ -4421,7 +4421,7 @@ bool CGameHandler::hireHero(const CGObjectInstance *obj, ui8 hid, PlayerColor pl
//Create a new boat for hero //Create a new boat for hero
NewObject no; NewObject no;
no.ID = Obj::BOAT; no.ID = Obj::BOAT;
no.subID = BoatId(EBoatId::BOAT_NEUTRAL); no.subID = BoatId(EBoatId::CASTLE);
no.pos = hr.tile + int3(1,0,0); no.pos = hr.tile + int3(1,0,0);
sendAndApply(&no); sendAndApply(&no);