hedgewars/uRenderUtils.pas
changeset 10142 adb804cb2638
parent 10139 9046f69dae4c
child 10494 0eb97cf4c78e
--- a/hedgewars/uRenderUtils.pas	Sun Feb 16 16:56:53 2014 +0400
+++ b/hedgewars/uRenderUtils.pas	Sun Feb 16 22:06:55 2014 +0400
@@ -318,21 +318,23 @@
     if cOnlyStats then exit(nil);
 
     case SpeechType of
-        1: begin;
+        1: begin
             edge:= sprSpeechEdge;
             corner:= sprSpeechCorner;
             tail:= sprSpeechTail;
             end;
-        2: begin;
+        2: begin
             edge:= sprThoughtEdge;
             corner:= sprThoughtCorner;
             tail:= sprThoughtTail;
             end;
-        3: begin;
+        3: begin
             edge:= sprShoutEdge;
             corner:= sprShoutCorner;
             tail:= sprShoutTail;
-            end;
+            end
+        else
+            exit(nil)
         end;
     edgeHeight:= SpritesData[edge].Height;
     edgeWidth:= SpritesData[edge].Width;