2
0
Эх сурвалжийг харах

Fix boat extra animations

nordsoft 2 жил өмнө
parent
commit
2babb5add5

+ 1 - 1
client/mapView/MapRenderer.cpp

@@ -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;