[Scummvm-git-logs] scummvm master -> 0e2be98857a3fbf028aeb62a12a684cbb6116a19

dreammaster dreammaster at scummvm.org
Wed Aug 23 02:57:30 CEST 2017


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:
0e2be98857 TITANIC: Ensure PET _remoteTargetName is set when saving


Commit: 0e2be98857a3fbf028aeb62a12a684cbb6116a19
    https://github.com/scummvm/scummvm/commit/0e2be98857a3fbf028aeb62a12a684cbb6116a19
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2017-08-22T20:57:22-04:00

Commit Message:
TITANIC: Ensure PET _remoteTargetName is set when saving

Changed paths:
    engines/titanic/pet_control/pet_control.cpp


diff --git a/engines/titanic/pet_control/pet_control.cpp b/engines/titanic/pet_control/pet_control.cpp
index 73f6df5..cfd209f 100644
--- a/engines/titanic/pet_control/pet_control.cpp
+++ b/engines/titanic/pet_control/pet_control.cpp
@@ -58,6 +58,10 @@ CPetControl::CPetControl() : CGameObject(),
 }
 
 void CPetControl::save(SimpleFile *file, int indent) {
+	// Ensure a remote target name is set if there is one
+	if (_remoteTargetName.empty() && _remoteTarget)
+		_remoteTargetName = _remoteTarget->getName();
+
 	file->writeNumberLine(0, indent);
 	file->writeNumberLine(_currentArea, indent);
 	file->writeQuotedLine(_activeNPCName, indent);





More information about the Scummvm-git-logs mailing list