[Custom Views] Pass view as self when calling 'destroy'
This commit is contained in:
parent
8854a77417
commit
46751896d3
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ local function remove_injected_views(on_reload)
|
||||||
local view = _ingame_ui.views[view_name]
|
local view = _ingame_ui.views[view_name]
|
||||||
if view then
|
if view then
|
||||||
if type(view.destroy) == "function" then
|
if type(view.destroy) == "function" then
|
||||||
vmf.safe_call_nr(view_data.mod, {ERRORS.PREFIX["view_destroying"], view_name}, view.destroy)
|
vmf.safe_call_nr(view_data.mod, {ERRORS.PREFIX["view_destroying"], view_name}, view.destroy, view)
|
||||||
end
|
end
|
||||||
_ingame_ui.views[view_name] = nil
|
_ingame_ui.views[view_name] = nil
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue