diff --git a/src/p_setup.cpp b/src/p_setup.cpp index 0afb49be4..c1a345d8e 100644 --- a/src/p_setup.cpp +++ b/src/p_setup.cpp @@ -404,7 +404,8 @@ MapData *P_OpenMapData(const char * mapname) } } DWORD id; - (*map->file) >> id; + + map->file->Read(&id, sizeof(id)); if (id == IWAD_ID || id == PWAD_ID) {