1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-05-12 19:57:44 +00:00

Fix crash in EXDPart when the EXD isn't found

This commit is contained in:
Joshua Goins 2025-05-10 23:57:14 -04:00
parent 1e18da1c4b
commit 0aca596662

View file

@ -93,6 +93,9 @@ void EXDPart::loadTables()
tableWidget->setEditTriggers(QAbstractItemView::NoEditTriggers); tableWidget->setEditTriggers(QAbstractItemView::NoEditTriggers);
auto exd = physis_gamedata_read_excel_sheet(data, name.toStdString().c_str(), exh, getSuitableLanguage(exh), i); auto exd = physis_gamedata_read_excel_sheet(data, name.toStdString().c_str(), exh, getSuitableLanguage(exh), i);
if (exd.p_ptr == nullptr) {
continue;
}
tableWidget->setRowCount(exh->row_count); tableWidget->setRowCount(exh->row_count);