Fix #30306: crash duplicating object with action actuator but no animation data.

This commit is contained in:
Brecht Van Lommel
2012-02-23 16:12:36 +00:00
parent 107795af49
commit fdc01b49c2

View File

@@ -1807,7 +1807,7 @@ static Base *object_add_duplicate_internal(Main *bmain, Scene *scene, Base *base
for (act = obn->actuators.first; act; act = act->next) {
if(act->type == ACT_ACTION) {
bActionActuator* actact = (bActionActuator*) act->data;
if(actact->act == ob->adt->action) {
if(ob->adt && actact->act == ob->adt->action) {
actact->act = obn->adt->action;
}
}