From 8945fbeb4887d8f16bdc5dee81672802450d1862 Mon Sep 17 00:00:00 2001 From: Kyle Fuller Date: Mon, 5 Sep 2011 17:29:06 +0000 Subject: [PATCH] Check we have a network before we try to get its modules (in /msg *status listavailmods) --- ClientCommand.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ClientCommand.cpp b/ClientCommand.cpp index 3ac576e4..e84ee582 100644 --- a/ClientCommand.cpp +++ b/ClientCommand.cpp @@ -741,7 +741,7 @@ void CClient::UserCommand(CString& sLine) { for (it = ssNetworkMods.begin(); it != ssNetworkMods.end(); ++it) { const CModInfo& Info = *it; Table.AddRow(); - Table.SetCell("Name", (m_pNetwork->GetModules().FindModule(Info.GetName()) ? "*" : " ") + Info.GetName()); + Table.SetCell("Name", ((m_pNetwork && m_pNetwork->GetModules().FindModule(Info.GetName())) ? "*" : " ") + Info.GetName()); Table.SetCell("Description", Info.GetDescription().Ellipsize(128)); }