Skip to content

Commit

Permalink
Fixed the compile
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphaelIT7 committed May 14, 2024
1 parent cb50108 commit a9b5cb4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
7 changes: 1 addition & 6 deletions source/lua_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@ GarrysMod::Lua::ILuaInterface* Win_CreateInterface() {
class IPlayerInfo;
class edict_t;
static const char playerinfomanager_name[] = "PlayerInfoManager002";
class IPlayerInfoManager
{
public:
virtual IPlayerInfo *GetPlayerInfo( edict_t *pEdict ) = 0;
virtual CGlobalVars *GetGlobalVars( ) = 0;
};

CGlobalVars* GlobalVars()
{
Expand All @@ -49,6 +43,7 @@ IFileSystem* filesystem;
CGlobalVars* gpGlobals;
IVEngineServer* engine;
INetworkStringTableContainer* networkstringtables;
CGameRules* g_pGameRules;

static SourceSDK::FactoryLoader engine_loader("engine");
static SourceSDK::FactoryLoader server_loader("server");
Expand Down
3 changes: 2 additions & 1 deletion source/lua_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,9 @@ struct lua_State
#include "GameEventListener.h"
#include <unordered_map>
#include "ILuaConVars.h"
#include <gamerules.h>
#include "detours.h"
#include "player.h" // Needs to be included before gamerules.h or everything breaks.
#include <gamerules.h>
#include <setjmp.h>
#include <eiface.h>
#include <vector>
Expand Down

0 comments on commit a9b5cb4

Please sign in to comment.