mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2024-12-25 04:03:59 +01:00
Make GetItemDefinitionIDs behave more like the real one.
This commit is contained in:
parent
c162ca79d5
commit
faf15e5d88
1 changed files with 4 additions and 1 deletions
|
@ -623,7 +623,10 @@ bool GetItemDefinitionIDs(
|
|||
|
||||
PRINT_DEBUG("array_size %u\n", *punItemDefIDsArraySize);
|
||||
|
||||
if (pItemDefIDs == nullptr)
|
||||
if (!item_definitions_loaded)
|
||||
return false;
|
||||
|
||||
if (pItemDefIDs == nullptr || *punItemDefIDsArraySize == 0)
|
||||
{
|
||||
*punItemDefIDsArraySize = defined_items.size();
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue