From 237d3d86ecd84fc2084c7739a6ff054e3b0c829b Mon Sep 17 00:00:00 2001 From: Einar Johan Trøan Sømåen Date: Tue, 5 Nov 2013 13:54:25 +0100 Subject: WINTERMUTE: Transfer Char* explicitly when saving/loading. --- engines/wintermute/coll_templ.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/wintermute/coll_templ.h') diff --git a/engines/wintermute/coll_templ.h b/engines/wintermute/coll_templ.h index d688fa06d0..552cd4a343 100644 --- a/engines/wintermute/coll_templ.h +++ b/engines/wintermute/coll_templ.h @@ -97,14 +97,14 @@ class BaseArray : public BaseArrayBase { Common::Array::const_iterator it = Common::Array::begin(); for (; it != Common::Array::end(); ++it) { char * obj = *it; - persistMgr->transfer("", &obj); + persistMgr->transferCharPtr("", &obj); } } else { Common::Array::clear(); persistMgr->transferSint32("ArraySize", &j); for (int i = 0; i < j; i++) { char * obj = nullptr; - persistMgr->transfer("", &obj); + persistMgr->transferCharPtr("", &obj); add(obj); } } -- cgit v1.2.3