-#define PRVM_GETEDICTFIELDVALUE(ed, fieldoffset) (fieldoffset ? (prvm_eval_t *)((qbyte *)ed->fields.vp + fieldoffset) : NULL)
+#define PRVM_GETEDICTFIELDVALUE(ed, fieldoffset) (fieldoffset ? (prvm_eval_t *)((unsigned char *)ed->fields.vp + fieldoffset) : NULL)
+#define PRVM_GETGLOBALFIELDVALUE(fieldoffset) (fieldoffset ? (prvm_eval_t *)((unsigned char *)prog->globals.generic + fieldoffset) : NULL)
// (simple optimization of the free string search)
int firstfreeknownstring;
const char **knownstrings;
// (simple optimization of the free string search)
int firstfreeknownstring;
const char **knownstrings;
const char ***stringshash;
// all memory allocations related to this vm_prog (code, edicts, strings)
const char ***stringshash;
// all memory allocations related to this vm_prog (code, edicts, strings)
void _PRVM_FreeAll (const char *filename, int fileline);
void PRVM_Profile_f (void);
void _PRVM_FreeAll (const char *filename, int fileline);
void PRVM_Profile_f (void);
void PRVM_PrintState(void);
void PRVM_CrashAll (void);
void PRVM_Crash (void);
int PRVM_ED_FindFieldOffset(const char *field);
void PRVM_PrintState(void);
void PRVM_CrashAll (void);
void PRVM_Crash (void);
int PRVM_ED_FindFieldOffset(const char *field);
void PRVM_ED_Print(prvm_edict_t *ed);
void PRVM_ED_Write (qfile_t *f, prvm_edict_t *ed);
const char *PRVM_ED_ParseEdict (const char *data, prvm_edict_t *ent);
void PRVM_ED_Print(prvm_edict_t *ed);
void PRVM_ED_Write (qfile_t *f, prvm_edict_t *ed);
const char *PRVM_ED_ParseEdict (const char *data, prvm_edict_t *ent);
void PRVM_FreeString(int num);
//============================================================================
void PRVM_FreeString(int num);
//============================================================================