mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-12-26 02:14:15 +08:00
Make GetItemDefinitionIDs behave more like the real one.
This commit is contained in:
parent
c162ca79d5
commit
faf15e5d88
@ -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…
x
Reference in New Issue
Block a user