fix copypasta-fail that would cause splashes to use invalid sprite data pointer. should fix issue 838
authorsheepluva
Sun, 30 Nov 2014 17:20:37 +0100
changeset 10584 f44ec13e3082
parent 10583 8994cf0bb33e
child 10585 eaccc445c473
fix copypasta-fail that would cause splashes to use invalid sprite data pointer. should fix issue #838
hedgewars/uVisualGears.pas
--- a/hedgewars/uVisualGears.pas	Sat Nov 29 21:29:32 2014 -0500
+++ b/hedgewars/uVisualGears.pas	Sun Nov 30 17:20:37 2014 +0100
@@ -213,7 +213,7 @@
                            else
                                DrawTextureF(SpritesData[sprFlame].Texture, Gear^.FrameTicks / 900, round(Gear^.X) + WorldDx, round(Gear^.Y) + WorldDy, (RealTicks shr 7 + Gear^.Frame) mod 8, 1, 16, 16);
                   vgtSplash: begin
-                             spriteData:= GetSpriteData(sprSplash, sprite);
+                             spriteData:= GetSpriteData(sprSplash, sprSDSplash);
                              if Gear^.Angle <> 0 then
                                 DrawTextureRotatedF(spriteData^.Texture, Gear^.scale, 0, 0, round(Gear^.X + WorldDx + (((spriteData^.Height+8)*Gear^.Scale)/2) * (Gear^.Angle / abs(Gear^.Angle))), round(Gear^.Y + WorldDy), 19 - (Gear^.FrameTicks div Gear^.Timer div 37), 1, spriteData^.Width, spriteData^.Height, Gear^.Angle)
                              else