mirror of
https://gitea.your-land.de/Sokomine/yl_speak_up.git
synced 2025-06-24 08:08:02 +02:00
fix crash
This commit is contained in:
parent
a6b7ff0d8e
commit
cfd300ac5d
@ -368,6 +368,9 @@ yl_speak_up.input_add_trade_simple = function(player, formname, fields)
|
||||
yl_speak_up.add_trade_simple_return_items(player, trade_inv, pay, buy)
|
||||
|
||||
local dialog = yl_speak_up.speak_to[pname].dialog
|
||||
if(not(dialog.trades)) then
|
||||
dialog.trades = {}
|
||||
end
|
||||
if(dialog.trades[ trade_id ] and dialog.trades[ trade_id ].d_id) then
|
||||
yl_speak_up.speak_to[pname].trade_id = trade_id
|
||||
-- tell the player that the new trade has been added
|
||||
|
Loading…
Reference in New Issue
Block a user