Cargo canister purchases fixed again (#59274)

There were some remaining bugs with purchasing gas canisters brought to my attention.
This commit is contained in:
Emmett Gaines
2021-05-24 12:28:20 -04:00
committed by GitHub
parent c0553e5e46
commit 7de70dc236
3 changed files with 6 additions and 3 deletions
+3 -2
View File
@@ -163,10 +163,11 @@
if(TIMER_COOLDOWN_CHECK(src, COOLDOWN_EXPRESSPOD_CONSOLE))
say("Railgun recalibrating. Stand by.")
return
var/id = text2path(params["id"])
var/id = params["id"]
id = text2path(id) || id
var/datum/supply_pack/pack = SSshuttle.supply_packs[id]
if(!istype(pack))
return
CRASH("Unknown supply pack id given by express order console ui. ID: [params["id"]]")
var/name = "*None Provided*"
var/rank = "*None Provided*"
var/ckey = usr.ckey