mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2024-11-14 10:50:13 +01:00
Fixed definition update not being called
Should update definition when inventory is requested and definition is not loaded
This commit is contained in:
parent
da75aa3ae7
commit
86b178f55b
1 changed files with 3 additions and 2 deletions
|
@ -847,9 +847,9 @@ bool SubmitUpdateProperties( SteamInventoryUpdateHandle_t handle, SteamInventory
|
||||||
|
|
||||||
void RunCallbacks()
|
void RunCallbacks()
|
||||||
{
|
{
|
||||||
if (call_definition_update) {
|
if (call_definition_update && !definition_update_called) {
|
||||||
read_items_db();
|
|
||||||
definition_update_called = true;
|
definition_update_called = true;
|
||||||
|
read_items_db();
|
||||||
|
|
||||||
SteamInventoryDefinitionUpdate_t data = {};
|
SteamInventoryDefinitionUpdate_t data = {};
|
||||||
callbacks->addCBResult(data.k_iCallback, &data, sizeof(data));
|
callbacks->addCBResult(data.k_iCallback, &data, sizeof(data));
|
||||||
|
@ -860,6 +860,7 @@ void RunCallbacks()
|
||||||
read_inventory_db();
|
read_inventory_db();
|
||||||
inventory_loaded = true;
|
inventory_loaded = true;
|
||||||
|
|
||||||
|
call_definition_update = true;
|
||||||
call_inventory_update = false;
|
call_inventory_update = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue