#include "game_types.h"

/* Script_ReadWord @ 0x08014CE8 (real 54B) -- reads a little-endian word, advances cursor by 4. Mirrors src/matched/Script_ReadWord.c. */
/* Assembles a little-endian word from 4 cursor bytes (mask pools fold the
   lanes) into field 40, then advances the cursor by 4. */
void Script_ReadWord(char *st)
{
    unsigned char *p = *(unsigned char **)(st + 64);
    *(int *)(st + 40) = p[0] | (p[1] << 8) | (p[2] << 16) | (p[3] << 24);
    *(unsigned char **)(st + 64) = p + 4;
}
