From 14b3d3f03c2fc3cda8097456e1d52b21b4640240 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Thu, 23 Jan 2014 22:35:33 -0500 Subject: [PATCH] Fix unsafe cast --- Sources/Plasma/PubUtilLib/plMessage/plAvCoopMsg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Plasma/PubUtilLib/plMessage/plAvCoopMsg.cpp b/Sources/Plasma/PubUtilLib/plMessage/plAvCoopMsg.cpp index 8c20a89a..bfbf3476 100644 --- a/Sources/Plasma/PubUtilLib/plMessage/plAvCoopMsg.cpp +++ b/Sources/Plasma/PubUtilLib/plMessage/plAvCoopMsg.cpp @@ -100,7 +100,7 @@ void plAvCoopMsg::Read(hsStream *stream, hsResMgr *mgr) plMessage::IMsgRead(stream, mgr); if(stream->ReadBool()) - fCoordinator = reinterpret_cast(mgr->ReadCreatable(stream)); + fCoordinator = plCoopCoordinator::ConvertNoRef(mgr->ReadCreatable(stream)); fInitiatorID = stream->ReadLE32(); fInitiatorSerial = stream->ReadLE16();