From 793f43715e562f25d91401e90631d4a0939eff14 Mon Sep 17 00:00:00 2001 From: IllidanS4 Date: Sat, 14 Nov 2020 15:44:00 +0100 Subject: [PATCH] Linux fix --- src/Utils.cpp | 4 ++-- src/Utils.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Utils.cpp b/src/Utils.cpp index 0063195..db3ad88 100644 --- a/src/Utils.cpp +++ b/src/Utils.cpp @@ -237,13 +237,13 @@ BYTE Utility::GetWeaponSlot(BYTE weaponid) } // Load an entry from server.cfg - Y_Less -int Utility::CFGLoad(char const * const name, int default, char * const dest, size_t dlen) +int Utility::CFGLoad(char const * const name, int default_val, char * const dest, size_t dlen) { FILE * fileConfig = fopen("plugins/YSF.cfg", "r"); //logprintf("2"); int - ret = default, + ret = default_val, len = strlen(name); //logprintf("3"); diff --git a/src/Utils.h b/src/Utils.h index e5841dc..f956530 100644 --- a/src/Utils.h +++ b/src/Utils.h @@ -28,7 +28,7 @@ namespace Utility std::vector &split(const std::string &s, char delim, std::vector &elems); const char* GetWeaponName(BYTE weaponid); BYTE GetWeaponSlot(BYTE weaponid); - int CFGLoad(char const * const name, int default = 1, char * const dest = 0, size_t dlen = 0); + int CFGLoad(char const * const name, int default_val = 1, char * const dest = 0, size_t dlen = 0); }; float GetDistance3D(CVector *vecPosition, CVector *_vecPosition);