Skip to content

Commit

Permalink
fixed DFUNC(_hashDeserialize) not using HASH_SET or HASH_KEYS macro
Browse files Browse the repository at this point in the history
  • Loading branch information
JonBons authored Apr 6, 2024
1 parent 3a1d0bd commit c13a011
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/sys_data/XEH_preInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ GVAR(validStates) = HASH_CREATE;
DFUNC(_hashSerialize) = {
private _hash = _this;
private _vals = [];
private _keys = (allVariables _hash) select {
private _keys = HASH_KEYS(_hash) select {
private _val = HASH_GET(_hash,_x);
if (!isNil "_val") then {
if (IS_ARRAY(_val)) then {
Expand Down Expand Up @@ -85,7 +85,7 @@ DFUNC(_hashDeserialize) = {
_val = _val call FUNC(_arrayDeserialize);
};
};
_hash setVariable [_x, _val];
HASH_SET(_hash,_x,_val);
} forEach _keys;
_hash;
};
Expand Down

0 comments on commit c13a011

Please sign in to comment.