Skip to content

Commit

Permalink
Merge pull request #148 from jokoho48/FixPFH
Browse files Browse the repository at this point in the history
Fix Issue with PFH
  • Loading branch information
ViperMaul committed Sep 3, 2015
2 parents 3b87fd0 + c2e290d commit f12245e
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 f12245e

Please sign in to comment.