changeset 52:94dacaeff463

Make sure that missed duration fields get set to a safe value (can be missed in certain encounters).
author Farmbuyer of US-Kilrogg <farmbuyer@gmail.com>
date Wed, 01 Feb 2012 06:53:34 +0000
parents 857aea8ae33d
children 7af58a7dce7d
files gui.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gui.lua	Wed Feb 01 02:34:10 2012 +0000
+++ b/gui.lua	Wed Feb 01 06:53:34 2012 +0000
@@ -290,6 +290,7 @@
 
 			elseif e.kind == 'boss' then
 				local v
+				e.duration = e.duration or 0 -- can occasionally miss getting set
 				if e.reason == 'kill' then
 					if e.attempts == 1 then
 						v = "one-shot"