From 5f711c88536b7e5304e8faa8bd496541c5feb3b6 Mon Sep 17 00:00:00 2001 From: Nick Gammon Date: Thu, 16 Sep 2010 16:42:22 +1000 Subject: [PATCH] Fixed bug where world filename was not known during plugin install --- serialize.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/serialize.cpp b/serialize.cpp index 63349f32..d748f148 100644 --- a/serialize.cpp +++ b/serialize.cpp @@ -49,6 +49,8 @@ void CMUSHclientDoc::Serialize(CArchive& ar) Frame.SetStatusMessageNow (strMsg); + SetPathName((LPCTSTR) ar.GetFile ()->GetFilePath ()); // see: http://www.gammon.com.au/forum/?id=10596 + if (IsArchiveXML (ar)) Serialize_World_XML (ar); else