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:
parent
1e18da1c4b
commit
0aca596662
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue