(4ad359147) Fix an index out of array exception when trying to set the update order (draw order) while the updateList contains no elements.

This commit is contained in:
Joonas Rikkonen
2019-03-27 20:49:38 +02:00
parent 632dce88c0
commit 5c324a6de9
7 changed files with 242 additions and 8 deletions
@@ -237,6 +237,9 @@ namespace Barotrauma
Hull hull = Hull.FindHull(ConvertUnits.ToDisplayUnits(explosionPos), null, false);
bool underWater = hull == null || explosionPos.Y < hull.Surface;
Hull hull = Hull.FindHull(ConvertUnits.ToDisplayUnits(explosionPos), null, false);
bool underWater = hull == null || explosionPos.Y < hull.Surface;
explosionPos = ConvertUnits.ToSimUnits(explosionPos);
Dictionary<Limb, float> distFactors = new Dictionary<Limb, float>();