Can't claim points when no ID is inserted

This commit is contained in:
joep van der velden
2020-10-18 16:26:10 +02:00
parent 9ef602bb1b
commit b5b70de391
2 changed files with 3 additions and 1 deletions
@@ -101,6 +101,8 @@
I.forceMove(src)
inserted_id = I
if("claim_points")
if(!inserted_id)
return
inserted_id.points += stacking_machine.points
stacking_machine.points = 0
to_chat(usr, "Points transferred.")