1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-26 23:52:33 +00:00
nixpkgs/pkgs/games/exult/64bits.patch
Eelco Dolstra df50191ff5 * Really fix Exult on x86_64 now.
svn path=/nixpkgs/trunk/; revision=12188
2008-06-25 15:33:07 +00:00

22 lines
682 B
Diff

diff -ru exult-1.2-orig/usecode/useval.cc exult-1.2/usecode/useval.cc
--- exult-1.2-orig/usecode/useval.cc 2004-05-23 07:07:11.000000000 +0200
+++ exult-1.2/usecode/useval.cc 2008-06-25 17:27:15.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: