From ce4b748ff042f997fe39eb6574c7e27dfeacbcca Mon Sep 17 00:00:00 2001 From: Cacodemon345 Date: Sun, 9 May 2021 12:58:37 +0600 Subject: [PATCH] Fix compilation with Clang on FreeBSD --- source/games/duke/src/gamedef.cpp | 4 ++-- source/games/duke/src/gamevar.cpp | 2 +- source/games/sw/src/inv.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source/games/duke/src/gamedef.cpp b/source/games/duke/src/gamedef.cpp index 76859c7d1..9b86ae0db 100644 --- a/source/games/duke/src/gamedef.cpp +++ b/source/games/duke/src/gamedef.cpp @@ -2795,10 +2795,10 @@ int ConCompiler::parsecommand() setscriptvalue(tempscrptr, scriptpos()); // save 'end' location } - casescriptptr = NULL; + casescriptptr = 0; // decremented in endswitch. Don't decrement here... // checking_switch--; // allow nesting (maybe if other things work) - tempscrptr = NULL; + tempscrptr = 0; break; diff --git a/source/games/duke/src/gamevar.cpp b/source/games/duke/src/gamevar.cpp index c48830490..56a5dfa99 100644 --- a/source/games/duke/src/gamevar.cpp +++ b/source/games/duke/src/gamevar.cpp @@ -431,7 +431,7 @@ void ClearGameEvents() int i; for (i=0;i