[Scummvm-git-logs] scummvm master -> 37dbd365e2cb40699a065b416db3b1cd638f63b8

dreammaster dreammaster at scummvm.org
Thu Apr 5 13:36:45 CEST 2018


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:
37dbd365e2 XEEN: Fix lockpicking to use selected character


Commit: 37dbd365e2cb40699a065b416db3b1cd638f63b8
    https://github.com/scummvm/scummvm/commit/37dbd365e2cb40699a065b416db3b1cd638f63b8
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2018-04-05T07:36:45-04:00

Commit Message:
XEEN: Fix lockpicking to use selected character

Changed paths:
    engines/xeen/party.cpp


diff --git a/engines/xeen/party.cpp b/engines/xeen/party.cpp
index 1d00632..78e7a3a 100644
--- a/engines/xeen/party.cpp
+++ b/engines/xeen/party.cpp
@@ -1438,7 +1438,6 @@ bool Party::giveExt(int mode1, uint val1, int mode2, uint val2, int mode3, uint
 	Map &map = *g_vm->_map;
 	Scripts &scripts = *g_vm->_scripts;
 	Sound &sound = *g_vm->_sound;
-	Character &c = _itemsCharacter;
 
 	if (intf._objNumber != -1 && !scripts._animCounter) {
 		MazeObject &obj = map._mobData._objects[intf._objNumber];
@@ -1450,7 +1449,8 @@ bool Party::giveExt(int mode1, uint val1, int mode2, uint val2, int mode3, uint
 
 		case 16:
 		case 58:
-		case 73:
+		case 73: {
+			Character &c = _activeParty[charId];
 			obj._frame = 1;
 
 			if (obj._position.x != 20) {
@@ -1481,6 +1481,11 @@ bool Party::giveExt(int mode1, uint val1, int mode2, uint val2, int mode3, uint
 					return true;
 				}
 			}
+			break;
+		}
+
+		default:
+			break;
 		}
 	}
 
@@ -1498,7 +1503,7 @@ bool Party::giveExt(int mode1, uint val1, int mode2, uint val2, int mode3, uint
 			break;
 
 		case 66:
-			c.clear();
+			_itemsCharacter.clear();
 
 			if (giveTake(0, 0, mode, val, charId))
 				return true;





More information about the Scummvm-git-logs mailing list