mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 23:58:07 +01:00
[MIRROR] Fix incorrect uses of UnregisterSignal (#6035)
* Fix incorrect uses of UnregisterSignal (#59379) Correctly unregister multiple signal types / removes uneeded proc parameters in calls to UnregisterSignal * Fix incorrect uses of UnregisterSignal Co-authored-by: Gamer025 <33846895+Gamer025@users.noreply.github.com>
This commit is contained in:
@@ -80,7 +80,7 @@ have ways of interacting with a specific atom and control it. They posses a blac
|
||||
|
||||
///Proc for deinitializing the pawn to the old controller
|
||||
/datum/ai_controller/proc/UnpossessPawn(destroy)
|
||||
UnregisterSignal(pawn, COMSIG_MOB_LOGIN, COMSIG_MOB_LOGOUT)
|
||||
UnregisterSignal(pawn, list(COMSIG_MOB_LOGIN, COMSIG_MOB_LOGOUT))
|
||||
pawn.ai_controller = null
|
||||
pawn = null
|
||||
if(destroy)
|
||||
|
||||
Reference in New Issue
Block a user