From f8fbd3c999acb268fca8b01333ab93d7b6229543 Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 16 Feb 2021 20:13:07 +0000 Subject: [PATCH] Fix crash caused by bad type on IGamemodeSystem::workshopid Bump revision number --- source/main.cpp | 4 ++-- source/netfilter/core.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source/main.cpp b/source/main.cpp index d0caf92..5f07c94 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -27,11 +27,11 @@ namespace global LUA->CreateTable( ); - LUA->PushString( "serversecure 1.5.32" ); + LUA->PushString( "serversecure 1.5.33" ); LUA->SetField( -2, "Version" ); // version num follows LuaJIT style, xxyyzz - LUA->PushNumber( 10532 ); + LUA->PushNumber( 10533 ); LUA->SetField( -2, "VersionNum" ); LUA->PushCFunction( GetClientCount ); diff --git a/source/netfilter/core.cpp b/source/netfilter/core.cpp index 3d73e36..853ad25 100644 --- a/source/netfilter/core.cpp +++ b/source/netfilter/core.cpp @@ -234,10 +234,10 @@ namespace netfilter reply_info.tags = " gm:"; reply_info.tags += gamemode.name; - if( !gamemode.workshopid.empty( ) ) + if( !gamemode.workshopid ) { reply_info.tags += " gmws:"; - reply_info.tags += gamemode.workshopid; + reply_info.tags += std::to_string( gamemode.workshopid ); } }