Skip to content

Commit

Permalink
- Fixed crash with old unsupported dehacked patches.
Browse files Browse the repository at this point in the history
  • Loading branch information
drfrag666 committed Mar 20, 2018
1 parent 04e4e02 commit 03216fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/d_dehacked.cpp
Expand Up @@ -2155,7 +2155,7 @@ void DoDehPatch (const char *patchfile, BOOL autoloading)
cont = 0;
if (0 == strncmp (PatchFile, "Patch File for DeHackEd v", 25))
{
if (PatchFile[25] < '3' && PatchFile[25] != '2' && PatchFile[27] != '3')
if (PatchFile[25] < '3' && (PatchFile[25] < '2' || PatchFile[27] < '3'))
{
if (PatchName != NULL) delete[] PatchName;
delete[] PatchFile;
Expand Down

0 comments on commit 03216fb

Please sign in to comment.