Blame 8Kingdoms-1.1.0-divide-by-zero.patch

abd34cd
diff -up ./res/xml/scripts/unit_recruit_elite.xml~ ./res/xml/scripts/unit_recruit_elite.xml
abd34cd
--- ./res/xml/scripts/unit_recruit_elite.xml~	2008-01-04 20:07:15.000000000 +0100
abd34cd
+++ ./res/xml/scripts/unit_recruit_elite.xml	2008-01-04 20:07:15.000000000 +0100
abd34cd
@@ -60,7 +60,7 @@
abd34cd
         # pomocna promenna pro uchovani poctu zbyvajicich zivotu
abd34cd
         set missing_lives [expr $max_lives - $unit(lives)];
abd34cd
     
abd34cd
-        if {$unit_types($unit(type), cure_cost) > 0} {
abd34cd
+        if {($unit_types($unit(type), cure_cost) > 0) && ($unit(level) > 0)} {
abd34cd
             # pomocna promenna pro uchovani maximalniho poctu zivotu, na ktere
abd34cd
             # ma hrac penize 
abd34cd
             set money [expr floor($player(money) / ($unit(level) * $unit_types($unit(type), cure_cost)))];