From eb69ef9547cfe95fbb33b42b399e228a97bf1f26 Mon Sep 17 00:00:00 2001 From: Mark Olsen Date: Fri, 5 Aug 2005 18:50:07 +0000 Subject: [PATCH] Endian fix. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1199 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/common/qvm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/common/qvm.c b/engine/common/qvm.c index aacab569a..5affb2d21 100644 --- a/engine/common/qvm.c +++ b/engine/common/qvm.c @@ -216,7 +216,7 @@ void Sys_UnloadDLL(void *handle) // ------------------------- * QVM files * ------------------------- #define VM_MAGIC 0x12721444 -#define LL LittleLong +#define LL(x) x = LittleLong(x) #pragma pack(push,1) typedef struct vmHeader_s @@ -388,6 +388,7 @@ qvm_t *QVM_Load(const char *name, sys_callex_t syscall) LL(header->instructionCount); LL(header->codeOffset); LL(header->codeLength); + LL(header->dataOffset); LL(header->dataLength); LL(header->litLength); LL(header->bssLength);