Only show the rules popup if rules have been recorded.

This commit is contained in:
toaster 2022-07-09 21:12:13 +01:00
parent 4f58842804
commit 0845547f47

View file

@ -6341,9 +6341,11 @@ void M_PopupMasterServerRules(void)
{
char *rules = GetMasterServerRules();
M_StartMessage(va("%s\n(press any key)", rules), NULL, MM_NOTHING);
Z_Free(rules);
if (rules)
{
M_StartMessage(va("%s\n(press any key)", rules), NULL, MM_NOTHING);
Z_Free(rules);
}
}
#endif
}