From 96df7cdd539cee59e10afe76f0334236e769b6c4 Mon Sep 17 00:00:00 2001 From: "Mohamed Amine \"DS\" Boussoubel" Date: Thu, 4 Nov 2021 22:09:49 +0100 Subject: [PATCH] Some fixes for compilation errors (#59) * Update imovehelper.h * Update string_t.h * Update imovehelper.h --- game/shared/imovehelper.h | 1 + public/string_t.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/game/shared/imovehelper.h b/game/shared/imovehelper.h index 02b17957..4084175c 100644 --- a/game/shared/imovehelper.h +++ b/game/shared/imovehelper.h @@ -12,6 +12,7 @@ #pragma once #endif +#include "shareddefs.h" //----------------------------------------------------------------------------- // Forward declarations diff --git a/public/string_t.h b/public/string_t.h index 4d67e703..a1af4e7d 100644 --- a/public/string_t.h +++ b/public/string_t.h @@ -52,7 +52,7 @@ typedef int string_t; struct string_t { public: - bool operator!() const { return ( pszValue == NULL ); } + bool operator!() const { return ( pszValue == nullptr ); } bool operator==( const string_t &rhs ) const { return ( pszValue == rhs.pszValue ); } bool operator!=( const string_t &rhs ) const { return ( pszValue != rhs.pszValue ); } bool operator<( const string_t &rhs ) const { return ((void *)pszValue < (void *)rhs.pszValue ); } @@ -67,7 +67,7 @@ protected: struct castable_string_t : public string_t // string_t is used in unions, hence, no constructor allowed { - castable_string_t() { pszValue = NULL; } + castable_string_t() { pszValue = nullptr; } castable_string_t( const char *pszFrom ) { pszValue = (pszFrom && *pszFrom) ? pszFrom : 0; } };