BGE Animations: Fixing a crash when an fcurve actuator is found, but the object doesn't have animation data (adt).

This commit is contained in:
2011-08-02 05:49:11 +00:00
parent 03c1585e3a
commit f5cff8ad37

View File

@@ -11752,7 +11752,8 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
aa->end = ia->end;
strcpy(aa->name, ia->name);
strcpy(aa->frameProp, ia->frameProp);
aa->act = ob->adt->action;
if (ob->adt)
aa->act = ob->adt->action;
// Get rid of the old actuator
MEM_freeN(ia);