eliminated undeclared global variable o_id
This commit is contained in:
parent
b536ce99f3
commit
45336ed4d4
@ -143,6 +143,7 @@ yl_speak_up.input_do_trade_simple = function(player, formname, fields)
|
||||
-- was the action a success?
|
||||
local success = not(not(trade and trade.trade_done and trade.trade_done > 0))
|
||||
local a_id = trade.a_id
|
||||
local o_id = trade.o_id
|
||||
yl_speak_up.debug_msg(player, n_id, o_id, "Ending trade.")
|
||||
-- done trading
|
||||
yl_speak_up.speak_to[pname].target_d_id = nil
|
||||
|
Loading…
Reference in New Issue
Block a user