Skip to content

Commit

Permalink
Merge pull request #172 from PabstMirror/remPFHbounds
Browse files Browse the repository at this point in the history
Fix bounds checking on removePFEH
  • Loading branch information
ViperMaul committed Oct 10, 2015
2 parents 7a2a3f3 + 54d66d1 commit 3bae324
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addons/ai/CfgFunctions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class CfgFunctions
{
description = "A function used to have AI search a given marker or trigger area indefinitely. Includes random building searches.";
file = "\x\cba\addons\ai\fnc_taskSearchArea.sqf";
}
};
};
};
};
2 changes: 1 addition & 1 deletion addons/common/fnc_removePerFrameHandler.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Author:

params ["_publicHandle"];

if (isNil "_publicHandle" || {(_publicHandle < 0)} || {!((count GVAR(PFHhandles)) >= _publicHandle)}) exitWith { // Nil/no handle, nil action or handle is larger than Public Handle Array
if (isNil "_publicHandle" || {_publicHandle < 0} || {(count GVAR(PFHhandles)) <= _publicHandle}) exitWith {// Nil/no handle or handle is out of bounds of Public Handle Array
WARNING("Invalid or not existing PFH ID.");
};

Expand Down

0 comments on commit 3bae324

Please sign in to comment.