From 393ca19bb93359bbdb6ce03affe523e8dd3a290c Mon Sep 17 00:00:00 2001 From: dgelessus Date: Sun, 6 Aug 2023 23:01:08 +0200 Subject: [PATCH] Remove an unnecessary plFactory instance access --- Sources/Plasma/PubUtilLib/plNetMessage/plNetMessage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Plasma/PubUtilLib/plNetMessage/plNetMessage.cpp b/Sources/Plasma/PubUtilLib/plNetMessage/plNetMessage.cpp index efcb3d7bb0..6ddfcb5ee8 100644 --- a/Sources/Plasma/PubUtilLib/plNetMessage/plNetMessage.cpp +++ b/Sources/Plasma/PubUtilLib/plNetMessage/plNetMessage.cpp @@ -546,7 +546,7 @@ void plNetMsgGameMessage::WriteVersion(hsStream* s, hsResMgr* mgr) ST::string plNetMsgGameMessage::AsString() const { - const char* noc = plFactory::GetTheFactory()->GetNameOfClass(StreamInfo()->GetStreamType()); + const char* noc = plFactory::GetNameOfClass(StreamInfo()->GetStreamType()); return ST::format("{} {}", plNetMsgStream::AsString(), noc ? noc : "?"); }