[Scummvm-git-logs] scummvm master -> 9de42a143a16e86b7fa08e6324b3823266e15561

Strangerke Strangerke at scummvm.org
Mon Sep 9 22:33:48 CEST 2019


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
9de42a143a HDB: Fix a pointer to local variable outside of scope


Commit: 9de42a143a16e86b7fa08e6324b3823266e15561
    https://github.com/scummvm/scummvm/commit/9de42a143a16e86b7fa08e6324b3823266e15561
Author: Strangerke (strangerke at scummvm.org)
Date: 2019-09-09T22:30:17+02:00

Commit Message:
HDB: Fix a pointer to local variable outside of scope

Changed paths:
    engines/hdb/hdb.cpp


diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp
index b7fdf30..14b7eb1 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);





More information about the Scummvm-git-logs mailing list