Forgot to update the ANIMATION_ID constant for set_entity_property in
@@ -471,15 +471,6 @@ HRESULT openbor_set_entity_property(ScriptVariant **varlist, ScriptVariant **pre
break;
- case _ENTITY_ANIMATION_ANIMATION:
-
- if(SUCCEEDED(ScriptVariant_IntegerValue(varlist[ARG_VALUE], &temp_int)))
- {
- handle->animnum = temp_int;
- }
-
- break;
-
case _ENTITY_ANIMATION_COLLECTION:
//handle->animation = (s_anim **)varlist[ARG_VALUE]->ptrVal;
@@ -495,6 +486,15 @@ HRESULT openbor_set_entity_property(ScriptVariant **varlist, ScriptVariant **pre
break;
+ case _ENTITY_ANIMATION_ID:
+
+ if (SUCCEEDED(ScriptVariant_IntegerValue(varlist[ARG_VALUE], &temp_int)))
+ {
+ handle->animnum = temp_int;
+ }
+
+ break;
+
case _ENTITY_ARROW_ON:
if(SUCCEEDED(ScriptVariant_IntegerValue(varlist[ARG_VALUE], &temp_int)))
