aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorStrangerke2019-09-09 22:29:57 +0200
committerStrangerke2019-09-09 22:30:17 +0200
commit9de42a143a16e86b7fa08e6324b3823266e15561 (patch)
tree6915ab13b23f58989dbfa3fc61fd3d6c36f97efa /engines
parentcd6ebdc88b1c33b657c1ae27b97114a5b891b8ab (diff)
downloadscummvm-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.cpp2
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);