From 12c978c189ad335c0ccb78532573bacff8bda914 Mon Sep 17 00:00:00 2001 From: Bryan Cain Date: Thu, 15 Mar 2018 17:52:49 -0600 Subject: [PATCH] Fix get_attack_property for damage on landing It was returning a pointer cast to an integer, which broke compilation on 64-bit Linux. --- engine/source/openborscript/collision_attack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/source/openborscript/collision_attack.c b/engine/source/openborscript/collision_attack.c index 8e8803a1f..d9267c8f5 100644 --- a/engine/source/openborscript/collision_attack.c +++ b/engine/source/openborscript/collision_attack.c @@ -206,7 +206,7 @@ HRESULT openbor_get_attack_property(ScriptVariant **varlist, ScriptVariant **pre case ATTACK_PROP_DAMAGE_LAND_FORCE: ScriptVariant_ChangeType(*pretvar, VT_INTEGER); - (*pretvar)->lVal = (LONG)handle->damage_on_landing; + (*pretvar)->lVal = (LONG)handle->damage_on_landing[0]; break; case ATTACK_PROP_DAMAGE_LAND_MODE: