From 840ead61baf2125409e490823ee9df878c88f2f6 Mon Sep 17 00:00:00 2001 From: vl Date: Fri, 28 May 2010 17:15:27 +0200 Subject: [PATCH] Changed: #847 downcast works in 64b. it's not a problem to use only the low half of the pointer since Seed is only used for randomize. --- code/ryzom/server/src/ai_service/ai_bot_npc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/ryzom/server/src/ai_service/ai_bot_npc.cpp b/code/ryzom/server/src/ai_service/ai_bot_npc.cpp index 36010c068..78770e4e6 100644 --- a/code/ryzom/server/src/ai_service/ai_bot_npc.cpp +++ b/code/ryzom/server/src/ai_service/ai_bot_npc.cpp @@ -690,7 +690,7 @@ void CBotNpc::sendVPA() // alternate VPA visProp.Element.ColorBoot = getSheet()->ColorFeets(); visProp.Element.ColorArm = getSheet()->ColorArms(); visProp.Element.Hat = _Hat; - visProp.Element.Seed = getAlias()!=0?getAlias():(uint32)this; + visProp.Element.Seed = getAlias()!=0?getAlias():(uint32)(size_t)(void*)this; LOG("BOT: %s L: %d R: %u H: %u CHEAD: %u CARMS: %u CHANDS: %u CBODY: %u CLEGS: %u CFEETS: %u SEED: %u", getName().c_str(), visProp.Element.WeaponLeftHand,