summaryrefslogtreecommitdiff
path: root/games/gzdoom/compilefix.4.5.0.diff
blob: 5c195189018ea8e80d4729cf24f7e0fde61f2ad8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -Naur gzdoom-g4.5.0/src/common/scripting/core/dynarrays.cpp gzdoom-g4.5.0.patched/src/common/scripting/core/dynarrays.cpp
--- gzdoom-g4.5.0/src/common/scripting/core/dynarrays.cpp	2020-10-31 05:07:33.000000000 -0400
+++ gzdoom-g4.5.0.patched/src/common/scripting/core/dynarrays.cpp	2020-11-08 14:45:48.654222783 -0500
@@ -89,7 +89,7 @@
 {
 	int oldSize = self->Size();
 	self->Insert(index, static_cast<typename T::value_type>(val));
-	if constexpr (fill) 
+	if (fill) 
 	{
 		for (unsigned i = oldSize; i < self->Size() - 1; i++) (*self)[i] = 0;
 	}