From 9dd2d6b1a6b3742ffe4a007f425642a9dd0887b7 Mon Sep 17 00:00:00 2001 From: Manuel Simon Hirsig Date: Wed, 2 Mar 2016 23:38:17 +0100 Subject: [PATCH] bugfix in post --- post_frame.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/post_frame.lua b/post_frame.lua index 55788b9..780218c 100644 --- a/post_frame.lua +++ b/post_frame.lua @@ -483,8 +483,8 @@ function public.on_load() btn:GetFontString():SetJustifyH('RIGHT') btn:GetFontString():SetPoint('RIGHT', 0, 0) btn:SetScript('OnClick', function() - private.set_unit_start_price(this.amount) - private.set_unit_buyout_price(this.amount) + private.set_unit_start_price(this.amount or 0) + private.set_unit_buyout_price(this.amount or 0) end) local label = Aux.gui.label(btn, 13) label:SetPoint('BOTTOMLEFT', btn, 'TOPLEFT', -2, 1)