From 9de42a143a16e86b7fa08e6324b3823266e15561 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Mon, 9 Sep 2019 22:29:57 +0200 Subject: HDB: Fix a pointer to local variable outside of scope --- engines/hdb/hdb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/hdb') 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); -- cgit v1.2.3