Skip to content

Commit

Permalink
Fixed hook not being destroyed on deinitialization
Browse files Browse the repository at this point in the history
  • Loading branch information
danielga committed Aug 25, 2018
1 parent 6640632 commit c5fd6bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/modules/serversecure.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions source/filecheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ namespace filecheck
INetworkStringTableContainer *networkstringtable =
global::engine_loader.GetInterface<INetworkStringTableContainer>(
INTERFACENAME_NETWORKSTRINGTABLESERVER
);
);
if( networkstringtable == nullptr )
LUA->ThrowError( "unable to get INetworkStringTableContainer" );

Expand All @@ -189,6 +189,6 @@ namespace filecheck

void Deinitialize( GarrysMod::Lua::ILuaBase * )
{
hook.Disable( );
hook.Destroy( );
}
}

0 comments on commit c5fd6bd

Please sign in to comment.