diff options
author | Strangerke | 2019-09-09 22:29:57 +0200 |
---|---|---|
committer | Strangerke | 2019-09-09 22:30:17 +0200 |
commit | 9de42a143a16e86b7fa08e6324b3823266e15561 (patch) | |
tree | 6915ab13b23f58989dbfa3fc61fd3d6c36f97efa /engines | |
parent | cd6ebdc88b1c33b657c1ae27b97114a5b891b8ab (diff) | |
download | scummvm-rg350-9de42a143a16e86b7fa08e6324b3823266e15561.tar.gz scummvm-rg350-9de42a143a16e86b7fa08e6324b3823266e15561.tar.bz2 scummvm-rg350-9de42a143a16e86b7fa08e6324b3823266e15561.zip |
HDB: Fix a pointer to local variable outside of scope
Diffstat (limited to 'engines')
-rw-r--r-- | engines/hdb/hdb.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp index b7fdf304ba..14b7eb110e 100644 --- a/engines/hdb/hdb.cpp +++ b/engines/hdb/hdb.cpp @@ -572,8 +572,8 @@ void HDBGame::useEntity(AIEntity *e) { bool added = false; + AIEntity temp; if (_ai->getTableEnt(e->type)) { - AIEntity temp; memcpy(&temp, e, sizeof(AIEntity)); _ai->getItemSound(e->type); |