Skip to content
Permalink
Browse files

HDB: Fix a pointer to local variable outside of scope

  • Loading branch information...
Strangerke committed Sep 9, 2019
1 parent cd6ebdc commit 9de42a143a16e86b7fa08e6324b3823266e15561
Showing with 1 addition and 1 deletion.
  1. +1 −1 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);

0 comments on commit 9de42a1

Please sign in to comment.
You can’t perform that action at this time.