Explorar o código

Fix boat extra animations

nordsoft %!s(int64=2) %!d(string=hai) anos
pai
achega
2babb5add5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      client/mapView/MapRenderer.cpp

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