# HG changeset patch
# User nemo
# Date 1292203020 18000
# Node ID c62e6e5228493c6f95b0e7a835e24a9c4f273d64
# Parent  c6aff8ceada079aaa1940e01be5300bb6cba0df1
div 0 check

diff -r c6aff8ceada0 -r c62e6e522849 hedgewars/uTeams.pas
--- a/hedgewars/uTeams.pas	Mon Dec 13 01:24:06 2010 +0100
+++ b/hedgewars/uTeams.pas	Sun Dec 12 20:17:00 2010 -0500
@@ -379,7 +379,7 @@
         begin
         MaxTeamHealth:= NewTeamHealthBarWidth;
         RecountAllTeamsHealth;
-        end else NewTeamHealthBarWidth:= (NewTeamHealthBarWidth * cTeamHealthWidth) div MaxTeamHealth
+        end else if NewTeamHealthBarWidth > 0 then NewTeamHealthBarWidth:= (NewTeamHealthBarWidth * cTeamHealthWidth) div MaxTeamHealth
     end;
 
 RecountClanHealth(team^.Clan);