mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-29 21:56:54 +02:00
Fix boat extra animations
This commit is contained in:
parent
e3ed728193
commit
2babb5add5
@ -477,7 +477,7 @@ std::shared_ptr<CAnimation> MapRendererObjects::getOverlayAnimation(const CGObje
|
||||
};
|
||||
|
||||
const auto * boat = dynamic_cast<const CGBoat *>(obj);
|
||||
if (boat->hero)
|
||||
if(boat->hero && obj->subID < boatAnimations.size())
|
||||
return getAnimation(boatAnimations[obj->subID], true);
|
||||
}
|
||||
return nullptr;
|
||||
|
Loading…
x
Reference in New Issue
Block a user