diff --git a/r5dev/client/vengineclient_impl.cpp b/r5dev/client/vengineclient_impl.cpp index af9dd4f2..fb61326f 100644 --- a/r5dev/client/vengineclient_impl.cpp +++ b/r5dev/client/vengineclient_impl.cpp @@ -27,7 +27,7 @@ void CEngineClient::SetRestrictServerCommands(bool bRestricted) // Input : // Output : bool //--------------------------------------------------------------------------------- -bool CEngineClient::GetRestrictServerCommands() +bool CEngineClient::GetRestrictServerCommands() const { return *m_bRestrictServerCommands; } @@ -47,7 +47,7 @@ void CEngineClient::SetRestrictClientCommands(bool bRestricted) // Input : // Output : bool //--------------------------------------------------------------------------------- -bool CEngineClient::GetRestrictClientCommands() +bool CEngineClient::GetRestrictClientCommands() const { return *m_bRestrictClientCommands; } diff --git a/r5dev/client/vengineclient_impl.h b/r5dev/client/vengineclient_impl.h index 46f70922..6c85f962 100644 --- a/r5dev/client/vengineclient_impl.h +++ b/r5dev/client/vengineclient_impl.h @@ -4,9 +4,9 @@ class CEngineClient { public: void SetRestrictServerCommands(bool bRestrict); - bool GetRestrictServerCommands(); + bool GetRestrictServerCommands() const; void SetRestrictClientCommands(bool bRestrict); - bool GetRestrictClientCommands(); + bool GetRestrictClientCommands() const; void* GetLocalPlayer(); // Is actually C_Player. };