diff options
author | Nipun Garg | 2019-06-21 03:19:36 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:52 +0200 |
commit | 15c2a946d197e99fb9eb036e23ecb7253c69cab9 (patch) | |
tree | cd107fd668cbbeb0a72aced91c0d0a476f5e987f /engines/hdb/ai-inventory.cpp | |
parent | 949f27872a3efec74f19f8b8508d4b81ffdf1048 (diff) | |
download | scummvm-rg350-15c2a946d197e99fb9eb036e23ecb7253c69cab9.tar.gz scummvm-rg350-15c2a946d197e99fb9eb036e23ecb7253c69cab9.tar.bz2 scummvm-rg350-15c2a946d197e99fb9eb036e23ecb7253c69cab9.zip |
HDB: Modify _inventory to an array of InvEnt*
Diffstat (limited to 'engines/hdb/ai-inventory.cpp')
-rw-r--r-- | engines/hdb/ai-inventory.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/hdb/ai-inventory.cpp b/engines/hdb/ai-inventory.cpp index d050b3cfaf..ea23dd2295 100644 --- a/engines/hdb/ai-inventory.cpp +++ b/engines/hdb/ai-inventory.cpp @@ -61,7 +61,7 @@ bool AI::addToInventory(AIEntity *e) { return false; } - memcpy(&_inventory[_numInventory].ent, e, sizeof(AIEntity)); + _inventory[_numInventory]->ent = e; _numInventory++; // If weapon, ready it |