Packed font rendering
This commit is contained in:
@@ -131,7 +131,7 @@ int gameobject_makefromprefab(char *path)
|
||||
FILE *fprefab = fopen(path, "rb");
|
||||
if (fprefab == NULL) {
|
||||
YughError("Could not find prefab %s.", path);
|
||||
return;
|
||||
return -1;
|
||||
}
|
||||
|
||||
struct gameobject *new = get_gameobject_from_id(MakeGameobject());
|
||||
@@ -142,6 +142,8 @@ int gameobject_makefromprefab(char *path)
|
||||
|
||||
fclose(fprefab);
|
||||
|
||||
arrlast(gameobjects).editor.id = arrlen(gameobjects)-1;
|
||||
|
||||
return arrlen(gameobjects)-1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user