diff --git a/zone/zone.cpp b/zone/zone.cpp index 709803aab..37bcb4db5 100755 --- a/zone/zone.cpp +++ b/zone/zone.cpp @@ -534,6 +534,10 @@ void Zone::LoadTempMerchantData() ) ); + if (!results.Success() || results.RowCount() == 0) { + return; + } + std::vector npc_ids; for (auto row = results.begin(); row != results.end(); ++row) { npc_ids.push_back(row[0]);