diff --git a/engine/qclib/pr_edict.c b/engine/qclib/pr_edict.c index d826c4fb8..cf4c702bf 100644 --- a/engine/qclib/pr_edict.c +++ b/engine/qclib/pr_edict.c @@ -2326,7 +2326,7 @@ retry: // byte swap the header #ifndef NOENDIAN - for (i=0 ; iversion == PROG_EXTENDEDVERSION) { +#ifndef NOENDIAN + for (i = standard_dprograms_t_size/sizeof(int); i < sizeof(dprograms_t)/sizeof(int); i++) + ((int *)pr_progs)[i] = PRLittleLong ( ((int *)pr_progs)[i] ); +#endif if (pr_progs->secondaryversion == PROG_SECONDARYVERSION16) { // printf("Opening 16bit fte progs file \"%s\"\n", filename);