Fixed global register in control files

This commit is contained in:
Cooldude2606 committed 2019-08-30 14:21:55 +01:00
1 parent ab869bf5e8
commit 24b53ba554
6 files changed
+24 -12

No files matched your search

+4 -2
View File
@@ -66,8 +66,10 @@ Global.register({
user_warnings = user_warnings,
user_script_warnings = user_script_warnings
},function(tbl)
user_warnings = tbl.user_warnings
user_script_warnings = tbl.user_script_warnings
Warnings.user_warnings = tbl.user_warnings
Warnings.user_script_warnings = tbl.user_script_warnings
user_warnings = Warnings.user_warnings
user_script_warnings = Warnings.user_script_warnings
end)
--- Gets an array of warnings that the player has, always returns a list even if emtpy