Fixes runtime in machinery/CanUseTopic() not providing correct number of arguments to ..() (#6443)

This commit is contained in:
Atermonera
2019-09-06 20:10:07 -04:00
committed by VirgoBot
parent 63757598de
commit 77cc4e1d31
+2 -2
View File
@@ -214,8 +214,8 @@ Class Procs:
/obj/machinery/CanUseTopic(var/mob/user)
if(!interact_offline && (stat & (NOPOWER | BROKEN)))
return STATUS_CLOSE
return ..()
// return ..() // This doesn't call the parent with the correct number of arguments (causing a runtime in /code/modules/nano/interaction/base.dm), nor easily provide any indication as to what the datum/topic_state should be, so this is clearly the wrong action.
return STATUS_INTERACTIVE
/obj/machinery/CouldUseTopic(var/mob/user)
..()