Skip to content

Commit

Permalink
Fix Issue with PFH
Browse files Browse the repository at this point in the history
  • Loading branch information
jokoho48 committed Sep 2, 2015
1 parent 3b87fd0 commit c2e290d
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions addons/common/fnc_removePerFrameHandler.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,14 @@ GVAR(perFrameHandlerArray) set [_handle, nil];
_newArray = [];

GVAR(nextPFHid) = ({
private ["_entry", "_publicH", "_newHandle"];
_entry = _x;
_publicH = _x select 5;
if !(isNil "_entry") then {
_newHandle = _newArray pushBack _entry;
private ["_publicH", "_newHandle", "_return"];
_return = false;
_x params ["", "", "", "", "", "_publicH"];
if !(isNil "_x") then {
_newHandle = _newArray pushBack _x;
GVAR(PFHhandles) set [_publicH, _newHandle];
_return = true;
};
true
_return
} count GVAR(perFrameHandlerArray)) - 1;
GVAR(perFrameHandlerArray) = _newArray;

0 comments on commit c2e290d

Please sign in to comment.