aboutsummaryrefslogtreecommitdiff
path: root/games/exult
diff options
context:
space:
mode:
authorTilman Keskinoz <arved@FreeBSD.org>2007-07-31 14:54:12 +0000
committerTilman Keskinoz <arved@FreeBSD.org>2007-07-31 14:54:12 +0000
commit4564f57fc7aea9050dacd2f1ea2987572c7b4e9c (patch)
tree49d1567a5f4849021c5f721a5a84530ae9ba5a02 /games/exult
parentbca767f69627556482d5fe681b772061a401c824 (diff)
downloadports-4564f57fc7aea9050dacd2f1ea2987572c7b4e9c.tar.gz
ports-4564f57fc7aea9050dacd2f1ea2987572c7b4e9c.zip
Notes
Diffstat (limited to 'games/exult')
-rw-r--r--games/exult/files/patch-usecode-useval.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/games/exult/files/patch-usecode-useval.cc b/games/exult/files/patch-usecode-useval.cc
new file mode 100644
index 000000000000..ed4be4a4f2da
--- /dev/null
+++ b/games/exult/files/patch-usecode-useval.cc
@@ -0,0 +1,20 @@
+--- usecode/useval.cc.old 2006-10-25 21:43:21.000000000 +0200
++++ usecode/useval.cc 2006-10-25 21:48:49.000000000 +0200
+@@ -464,7 +464,7 @@
+ if (buflen < 5)
+ return -1;
+ *ptr++ = type;
+- Write4(ptr, (int)value.ptr);
++ Write4(ptr, 0);
+ break;
+ case string_type:
+ {
+@@ -525,7 +525,7 @@
+ case pointer_type:
+ if (buflen < 5)
+ return false;
+- value.ptr = (Game_object*)Read4(ptr); //DON'T dereference this pointer!
++ value.ptr = 0; //DON'T dereference this pointer!
+ // Maybe add a new type "serialized_pointer" to prevent "accidents"?
+ return true;
+ case string_type: