From c5fd6bd3292c2a4fa3967a31765be1f763376018 Mon Sep 17 00:00:00 2001 From: Daniel Date: Sat, 25 Aug 2018 23:06:09 +0100 Subject: [PATCH] Fixed hook not being destroyed on deinitialization --- include/modules/serversecure.lua | 4 ++-- source/filecheck.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/modules/serversecure.lua b/include/modules/serversecure.lua index bd06b59..28ed04e 100644 --- a/include/modules/serversecure.lua +++ b/include/modules/serversecure.lua @@ -2,8 +2,8 @@ require("serversecure.core") local format, match, band, rshift = string.format, string.match, bit.band, bit.rshift -serversecure.Version = "serversecure 1.5.20" -serversecure.VersionNum = 10520 +serversecure.Version = "serversecure 1.5.21" +serversecure.VersionNum = 10521 function serversecure.IPToString(uint) if not uint then diff --git a/source/filecheck.cpp b/source/filecheck.cpp index bafee67..7114edb 100644 --- a/source/filecheck.cpp +++ b/source/filecheck.cpp @@ -175,7 +175,7 @@ namespace filecheck INetworkStringTableContainer *networkstringtable = global::engine_loader.GetInterface( INTERFACENAME_NETWORKSTRINGTABLESERVER - ); + ); if( networkstringtable == nullptr ) LUA->ThrowError( "unable to get INetworkStringTableContainer" ); @@ -189,6 +189,6 @@ namespace filecheck void Deinitialize( GarrysMod::Lua::ILuaBase * ) { - hook.Disable( ); + hook.Destroy( ); } }