From de0a8152153f2682bb864915557bf77462c90136 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Wed, 21 Mar 2018 13:06:41 +0200 Subject: [PATCH] Fixed error reporting on loading malformed DeHackEd patches --- src/d_dehacked.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d_dehacked.cpp b/src/d_dehacked.cpp index b7587bd2d..a3e2773af 100644 --- a/src/d_dehacked.cpp +++ b/src/d_dehacked.cpp @@ -2559,9 +2559,9 @@ static bool DoDehPatch() } if (!cont || dversion == -1 || pversion == -1) { + Printf (PRINT_BOLD, "\"%s\" is not a DeHackEd patch file\n", PatchName); delete[] PatchName; delete[] PatchFile; - Printf (PRINT_BOLD, "\"%s\" is not a DeHackEd patch file\n", PatchFile); return false; } }