SV_SendFile: check if I_GetNodeAddress is set before use

This commit is contained in:
alufolie91 committed 2026-06-05 20:07:43 +02:00
1 parent 1ac029edc6
commit a3f557f4df
1 file changed
+1 -1
+1 -1
View File
@@ -691,7 +691,7 @@ static boolean SV_SendFile(INT32 node, const char *filename, UINT8 fileid)
char wadfilename[MAX_WADPATH];
if (cv_noticedownload.value)
if (cv_noticedownload.value && I_GetNodeAddress)
CONS_Printf("Sending file \"%s\" (id %d) to node %d (%s)\n", filename, fileid, node, I_GetNodeAddress(node));
// Find the last file in the list and set a pointer to its "next" field