1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-06-19 16:47:14 +02:00

Release script callbacks properly in main plugin.

This commit is contained in:
Sandu Liviu Catalin
2016-05-24 21:36:49 +03:00
parent da5e83151c
commit 86a4933525
8 changed files with 8 additions and 8 deletions

@ -116,7 +116,7 @@ void CCheckpoint::BindEvent(Int32 evid, Object & env, Function & func) const
// Is the specified callback function null?
if (func.IsNull())
{
event.Release(); // Then release the current callback
event.ReleaseGently(); // Then release the current callback
}
// Does this function need a custom environment?
else if (env.IsNull())