mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 14:41:28 +00:00
[Bug Fix] Fix potential trader crash when serialized item not found (#4386)
This commit is contained in:
parent
4478328b2a
commit
9cebba5911
@ -318,6 +318,7 @@ std::unique_ptr<EQ::ItemInstance> ZoneDatabase::LoadSingleTraderItem(uint32 char
|
|||||||
|
|
||||||
if (results.empty()) {
|
if (results.empty()) {
|
||||||
LogTrading("Could not find item serial number {} for character id {}", serial_number, char_id);
|
LogTrading("Could not find item serial number {} for character id {}", serial_number, char_id);
|
||||||
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
int item_id = results.at(0).item_id;
|
int item_id = results.at(0).item_id;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user