mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 20:48:56 +01:00
Fix del loop in modsuit devices (#90127)
## About The Pull Request When the device of a modsuit module (eg foam mister) is the first thing to be deleted, it causes a del loop runtime. Chain is: - device qdel, hasn't yet run destroy() which would normally move the device to nullspace - signal runs on_device_deletion, destroys the module - module destroy(), calls parent which deletes contents, including the still-deleting device Fixed by moving device to nullspace in on_device_deletion ## Changelog N/A
This commit is contained in:
@@ -330,6 +330,7 @@
|
||||
SIGNAL_HANDLER
|
||||
|
||||
if(source == device)
|
||||
device.moveToNullspace()
|
||||
device = null
|
||||
qdel(src)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user