aboutsummaryrefslogtreecommitdiff
path: root/games/ags/files/patch-Engine_ac_dynobj_cc__dynamicarray.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'games/ags/files/patch-Engine_ac_dynobj_cc__dynamicarray.cpp')
-rw-r--r--games/ags/files/patch-Engine_ac_dynobj_cc__dynamicarray.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/games/ags/files/patch-Engine_ac_dynobj_cc__dynamicarray.cpp b/games/ags/files/patch-Engine_ac_dynobj_cc__dynamicarray.cpp
new file mode 100644
index 000000000000..857b1ba5291d
--- /dev/null
+++ b/games/ags/files/patch-Engine_ac_dynobj_cc__dynamicarray.cpp
@@ -0,0 +1,11 @@
+--- Engine/ac/dynobj/cc_dynamicarray.cpp.orig 2017-02-21 00:32:02 UTC
++++ Engine/ac/dynobj/cc_dynamicarray.cpp
+@@ -32,7 +32,7 @@ int CCDynamicArray::Dispose(const char *
+ elementCount[0] &= ~ARRAY_MANAGED_TYPE_FLAG;
+ for (int i = 0; i < elementCount[0]; i++)
+ {
+- if (elementCount[2 + i] != NULL)
++ if (elementCount[2 + i] != 0)
+ {
+ ccReleaseObjectReference(elementCount[2 + i]);
+ }