there are several places like this:
double MathScriptEngine::GetArmorVSWeaponResistance(const double *parms)
{
psItem *weapon = (psItem *)(int)parms[0];
psItem *armor = (psItem *)(int)parms[1];
// if no armor return 1
if (!armor)
return 1.0F;
return weapon->GetArmorVSWeaponResistance(armor->GetCurrentStats());
}
now, my understanding is that the (int) cast should actually return a value corresponding to the double source numerically.
another option would be to have a reinterpret_cast.
either way, int is hardly useful on 64-bit platform.
luckily it seems this is used by the server only
