mirror of
https://github.com/redstrate/Novus.git
synced 2025-05-02 08:07:45 +00:00
Don't crash when there's no rows to read
This commit is contained in:
parent
7bf2a88c91
commit
61c663ff10
1 changed files with 3 additions and 0 deletions
|
@ -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];
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue