فهرست منبع

Fix boat extra animations

nordsoft 2 سال پیش
والد
کامیت
2babb5add5
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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;