diff options
Diffstat (limited to 'engines/titanic')
-rw-r--r-- | engines/titanic/pet_control/pet_control.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/titanic/pet_control/pet_control.cpp b/engines/titanic/pet_control/pet_control.cpp index 73f6df58a0..cfd209f763 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); |