Skip to content

Commit

Permalink
resource: pass CompileOptions explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
dbartolini committed Feb 20, 2025
1 parent f4b72b2 commit 9743245
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 86 deletions.
6 changes: 3 additions & 3 deletions src/resource/level_resource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@ namespace level_resource_internal
}
}

UnitCompiler uc(default_allocator(), opts);
s32 err = unit_compiler::parse_unit_array_from_json(uc, obj["units"]);
UnitCompiler uc(default_allocator());
s32 err = unit_compiler::parse_unit_array_from_json(uc, obj["units"], opts);
ENSURE_OR_RETURN(err == 0, opts);

Buffer units_blob(default_allocator());
err = unit_compiler::blob(units_blob, uc);
err = unit_compiler::blob(units_blob, uc, opts);
ENSURE_OR_RETURN(err == 0, opts);

// Write
Expand Down
Loading

0 comments on commit 9743245

Please sign in to comment.