From 0d0fa7e88df6f906062ca2b92554b339df10ce6e Mon Sep 17 00:00:00 2001
From: jsalmon3 <>
Date: Wed, 5 Mar 2003 20:34:06 +0000
Subject: [PATCH] Fixed bug in DrawManaSprite if full is 0

---
 src/unit/unit_draw.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/unit/unit_draw.cpp b/src/unit/unit_draw.cpp
index 736511143..f67ce3c28 100644
--- a/src/unit/unit_draw.cpp
+++ b/src/unit/unit_draw.cpp
@@ -10,7 +10,7 @@
 //
 /**@name unit_draw.c	-	The draw routines for units. */
 //
-//	(c) Copyright 1998-2002 by Lutz Sammer
+//	(c) Copyright 1998-2003 by Lutz Sammer
 //
 //	FreeCraft is free software; you can redistribute it and/or modify
 //	it under the terms of the GNU General Public License as published
@@ -748,6 +748,9 @@ local void DrawManaSprite(int x,int y,const UnitType* type,int full,int ready)
 {
     int n;
 
+    if( !full ) {
+	return;
+    }
     n=VideoGraphicFrames(ManaSprite.Sprite)-1;
     n-=(n*ready)/full;