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:
Kenionatus
2025-11-12 14:51:14 +00:00
committed by GitHub
parent 82b9b7d6b2
commit 62f76bdcf2
+4
View File
@@ -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)