Skip to content

Commit

Permalink
Fix crash caused by bad type on IGamemodeSystem::workshopid
Browse files Browse the repository at this point in the history
Bump revision number
  • Loading branch information
danielga committed Feb 16, 2021
1 parent 136810e commit f8fbd3c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down
4 changes: 2 additions & 2 deletions source/netfilter/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
}

Expand Down

0 comments on commit f8fbd3c

Please sign in to comment.