cool stuff
This commit is contained in:
@@ -13,12 +13,14 @@ void _GroundStructAddField(GroundStruct* gs, const char* id, GroundValue value)
|
||||
field = malloc(sizeof(GroundObjectField));
|
||||
|
||||
if (field == NULL) {
|
||||
Ground.Log.Error("malloc failed in Ground.Struct.addField()");
|
||||
Ground.Flags.error = true;
|
||||
return;
|
||||
}
|
||||
|
||||
field->value = malloc(sizeof(GroundValue));
|
||||
if (field->value == NULL) {
|
||||
Ground.Log.Error("malloc failed in Ground.Struct.addField()");
|
||||
Ground.Flags.error = true;
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user