diff --git a/amxmodx/Makefile b/amxmodx/Makefile index 84681c2b..8628cf4e 100755 --- a/amxmodx/Makefile +++ b/amxmodx/Makefile @@ -4,7 +4,7 @@ float.cpp file.cpp modules.cpp CMisc.cpp CTask.cpp string.cpp\ amxmodx.cpp CEvent.cpp CCmd.cpp CLogEvent.cpp srvcmd.cpp strptime.cpp\ CForward.cpp CPlugin.cpp CModule.cpp CMenu.cpp emsg.cpp util.cpp \ amxcore.cpp amxtime.cpp power.cpp amxxlog.cpp fakemeta.cpp mmgr/mmgr.cpp \ -amxxfile.cpp +amxxfile.cpp CLang.cpp CSRCFILES = amx.c minilzo/minilzo.c EXTRA_LIBS_LINUX = diff --git a/amxmodx/amx.cpp b/amxmodx/amx.cpp index 79888478..5e5e3b51 100755 --- a/amxmodx/amx.cpp +++ b/amxmodx/amx.cpp @@ -370,7 +370,7 @@ uint16_t * AMXAPI amx_Align16(uint16_t *v) uint32_t * AMXAPI amx_Align32(uint32_t *v) { - assert(sizeof(cell)==4); + assert(sizeof(*v)==4); init_little_endian(); if (!amx_LittleEndian) swap32(v); @@ -380,7 +380,7 @@ uint32_t * AMXAPI amx_Align32(uint32_t *v) #if defined _I64_MAX || defined HAVE_I64 uint64_t * AMXAPI amx_Align64(uint64_t *v) { - assert(sizeof(cell)==8); + assert(sizeof(*v)==8); init_little_endian(); if (!amx_LittleEndian) swap64(v);