Skip to content

Commit

Permalink
Fix get_attack_property for damage on landing
Browse files Browse the repository at this point in the history
It was returning a pointer cast to an integer, which broke compilation on
64-bit Linux.
  • Loading branch information
Plombo committed Mar 15, 2018
1 parent 35b2581 commit 12c978c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/source/openborscript/collision_attack.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 12c978c

Please sign in to comment.