diff --git a/loader/loader.h b/loader/loader.h index 7f7edef..f3a3093 100644 --- a/loader/loader.h +++ b/loader/loader.h @@ -27,14 +27,14 @@ #define _INCLUDE_METAMOD_SOURCE_LOADER_H_ // System -#define SH_SYS_WIN32 1 +#define SH_SYS_WIN32 1 #define SH_SYS_LINUX 2 -#define SH_SYS_APPLE 3 - -// Platform -#define SH_XP_POSIX 10 -#define SH_XP_WINAPI 20 - +#define SH_SYS_APPLE 3 + +// Platform +#define SH_XP_POSIX 10 +#define SH_XP_WINAPI 20 + // Compiler #define SH_COMP_GCC 1 #define SH_COMP_MSVC 2 diff --git a/loader/serverplugin.cpp b/loader/serverplugin.cpp index ac3e2f3..1020930 100644 --- a/loader/serverplugin.cpp +++ b/loader/serverplugin.cpp @@ -125,7 +125,7 @@ public: vtable_src = (void **)*(void **)&sample; vtable_dest = (void **)*(void **)this; SourceHook::SetMemAccess(&vtable_dest[mfp_dest.vtblindex], - sizeof(void*), + sizeof(void*), SH_MEM_READ|SH_MEM_WRITE|SH_MEM_EXEC); vtable_dest[mfp_dest.vtblindex] = vtable_src[mfp_src.vtblindex]; }