Retype DRLGGRID_OrFlagOnCellList's nGridPtr to D2DrlgGridStrc *
Ghidra v1803 · bc4e150
The ECX parameter is a DRLG grid: the body bounds-checks cell coordinates against +8 (nWidth) and +0xc (nHeight), then indexes *(grid+0) (pCellsFlags) through *(grid+4) (pCellsRowOffsets), matching D2DrlgGridStrc. The only caller, DRLGOUTROOM_LinkOutdoorRoomExits, passes ECX = EDI + 0x2c (0x00681467), i.e. &pWildData->sGridOutdoor, a D2DrlgGridStrc at offset 44 of D2DrlgLevelDataWildernessLevel. Same-width retype; name kept. The pnParam list parameter is left alone.
Changes 1, applied together
Retype variable
win 0x0067c890 ECXtypeint32_t→D2DrlgGridStrc *