Merge pull request #209 from GriffinRichards/fix-ttype

Use first trainer type constant for new objects
This commit is contained in:
garak 2020-04-21 19:05:54 -04:00 committed by GitHub
commit 52596ea38c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -67,7 +67,7 @@ Event* Event::createNewObjectEvent(Project *project)
event->put("script_label", "NULL");
event->put("event_flag", "0");
event->put("replacement", "0");
event->put("trainer_type", "0");
event->put("trainer_type", project->trainerTypes->value(0, "0"));
event->put("sight_radius_tree_id", 0);
event->put("elevation", 3);
return event;