Poll

What platform would you run Quetoo on if it was on Steam?:

Typecast question

November 03, 2009 - 13:44pm

Hi,

In function edict_t *G_Find(edict_t *from, int fieldofs, const char *match){} , in g_utils.c there is a typecast that I don't understand what is it good for:

s = *(char **)((byte *)from + fieldofs);

why not just:

s = (char *)((byte *)from + fieldofs); ?

Thanks.