summaryrefslogtreecommitdiff
path: root/src/map/guild.c
diff options
context:
space:
mode:
authorFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-11-22 15:44:17 +0000
committerFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-11-22 15:44:17 +0000
commit951a736ea97701dcde48c6085a596de96bafce45 (patch)
tree4aa30fc79780452937ea476e68b1a3013bc9c57c /src/map/guild.c
parent82ed8e76484c53edb394191d95da9d1fad77bbe1 (diff)
downloadhercules-951a736ea97701dcde48c6085a596de96bafce45.tar.gz
hercules-951a736ea97701dcde48c6085a596de96bafce45.tar.bz2
hercules-951a736ea97701dcde48c6085a596de96bafce45.tar.xz
hercules-951a736ea97701dcde48c6085a596de96bafce45.zip
* Hunted down the simpler 64bit pointer truncations.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13380 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/guild.c')
-rw-r--r--src/map/guild.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/guild.c b/src/map/guild.c
index a12d1544d..8f9137943 100644
--- a/src/map/guild.c
+++ b/src/map/guild.c
@@ -1874,7 +1874,7 @@ int guild_castlealldataload(int len,struct guild_castle *gc)
}
// update mapserver castle data with new info
- memcpy(&c->guild_id, &gc->guild_id, sizeof(struct guild_castle) - ((int)&c->guild_id - (int)c));
+ memcpy(&c->guild_id, &gc->guild_id, sizeof(struct guild_castle) - ((uintptr)&c->guild_id - (uintptr)c));
if( c->guild_id )
{