mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-26 13:37:58 +01:00
fix being able to generate requisition forms without an order (#30958)
It happened when you didn't have an account selected
This commit is contained in:
@@ -301,6 +301,10 @@
|
||||
|
||||
//===orderee account information===
|
||||
var/datum/money_account/selected_account = locateUID(params["account"])
|
||||
if(!selected_account)
|
||||
playsound(loc, 'sound/machines/buzz-sigh.ogg', 15, FALSE)
|
||||
to_chat(user, "<span class='warning'>You must select an account to pay for the order.</span>")
|
||||
return
|
||||
var/successes = 0
|
||||
for(var/i in 1 to amount)
|
||||
var/datum/supply_order/order = SSeconomy.generate_supply_order(params["crate"], idname, idrank, reason)
|
||||
|
||||
Reference in New Issue
Block a user