Skip to content

Commit

Permalink
Update emag.dm
Browse files Browse the repository at this point in the history
  • Loading branch information
TobyThorne committed Feb 8, 2024
1 parent d93ba2c commit a284328
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/game/objects/items/devices/emag.dm
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
if(!revealed)
return ..(A, user)

if(!my_cell.check_charge(charge_per_usage))
if(!my_cell?.check_charge(charge_per_usage))
return TRUE

A.emag_act(floor(my_cell.charge / charge_per_usage), user, src)
Expand Down

0 comments on commit a284328

Please sign in to comment.