1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-05-01 15:57:45 +00:00

Don't crash when there's no rows to read

This commit is contained in:
Joshua Goins 2025-04-29 15:53:31 -04:00
parent 7bf2a88c91
commit 61c663ff10

View file

@ -150,6 +150,9 @@ void EXDPart::loadTables()
for (unsigned int j = 0; j < exh->row_count; j++) {
auto rows = physis_exd_read_row(&exd, j); // TODO: free, use other rows
if (rows.row_count == 0)
continue;
for (unsigned int z = 0; z < exd.column_count; z++) {
auto columnData = rows.row_data[0].column_data[z];