Skip to content

Commit

Permalink
Fix bounds checking on removePFEH
Browse files Browse the repository at this point in the history
  • Loading branch information
PabstMirror committed Oct 10, 2015
1 parent 7a2a3f3 commit 54d66d1
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 54d66d1

Please sign in to comment.