Minor code clean up

This commit is contained in:
Thomas Kooi
2015-01-17 13:54:44 +01:00
parent eaa44fce6f
commit 7345cf91cf
5 changed files with 42 additions and 61 deletions

View File

@ -12,9 +12,10 @@ private ["_object", "_return", "_val", "_category"];
_object = _this select 0;
_category = if (count _this > 1) then { _this select 1 } else { "" };
if (isnil QGVAR(OBJECT_VARIABLES_STORAGE)) then {
GVAR(OBJECT_VARIABLES_STORAGE) = [];
if (isnil QGVAR(OBJECT_VARIABLES_STORAGE)) exitwith {
[];
};
_return = [];
{
_val = _object getvariable (_x select 0);