Set type of trap when saving.

This commit is contained in:
Steve 2018-02-11 11:08:05 +00:00
parent 284436f8c9
commit 9fdcf042ca
1 changed files with 1 additions and 0 deletions

View File

@ -202,6 +202,7 @@ static void save(cJSON *root)
t = (Trap*)self;
cJSON_AddStringToObject(root, "type", t->sprite[0]->name);
cJSON_AddNumberToObject(root, "active", t->active);
cJSON_AddNumberToObject(root, "onTime", t->onTime);
cJSON_AddNumberToObject(root, "offTime", t->offTime);