Skip to content

Commit

Permalink
Use more reliable method of relabeling canister
Browse files Browse the repository at this point in the history
  • Loading branch information
neersighted committed Feb 10, 2016
1 parent 33e7364 commit 66dac6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/modules/atmospherics/machinery/portable/canister.dm
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
/obj/machinery/portable_atmospherics/canister/New(loc, datum/gas_mixture/existing_mixture)
..()
if(existing_mixture)
air_contents = existing_mixture
air_contents.copy_from(existing_mixture)
else
create_gas()

Expand Down Expand Up @@ -259,7 +259,7 @@
if(label && !..())
var/newtype = label2types[label]
if(newtype)
var/obj/machinery/portable_atmospherics/canister/replacement = new newtype(loc, air_contents.copy())
var/obj/machinery/portable_atmospherics/canister/replacement = new newtype(loc, air_contents)
replacement.interact(usr)
qdel(src)
if("pressure")
Expand Down

0 comments on commit 66dac6d

Please sign in to comment.