Scatter bug fix for entities.

This commit is contained in:
Steve 2015-11-29 16:30:59 +00:00
parent eb894f9703
commit d3b0755f8b
1 changed files with 1 additions and 2 deletions

View File

@ -289,8 +289,6 @@ static void loadEntities(cJSON *node)
int i, type, scatter, number, active; int i, type, scatter, number, active;
float x, y; float x, y;
scatter = 1;
if (node) if (node)
{ {
node = node->child; node = node->child;
@ -305,6 +303,7 @@ static void loadEntities(cJSON *node)
groupName = NULL; groupName = NULL;
number = 1; number = 1;
active = 1; active = 1;
scatter = 1;
if (cJSON_GetObjectItem(node, "name")) if (cJSON_GetObjectItem(node, "name"))
{ {