diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2024-02-13 14:58:17 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-02-13 21:22:32 +0100 |
| commit | 8f7b089e246b5e55d1cacb756da4219bb751236f (patch) | |
| tree | b302742a6cdc70c393c6020bc8e3b4d1bc08d348 /editor | |
| parent | 9b70fb78e70a509ba5bfa1c1d0a839eddd0902dc (diff) | |
scenery loader now works
Diffstat (limited to 'editor')
| -rw-r--r-- | editor/scenery-json.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/scenery-json.cpp b/editor/scenery-json.cpp index 7a31a306..e2bf24a6 100644 --- a/editor/scenery-json.cpp +++ b/editor/scenery-json.cpp @@ -9,8 +9,8 @@ namespace floormat { void scenery_editor::load_atlases() { _atlases.clear(); - for (const auto& s : loader.sceneries()) - _atlases[s.name] = scenery_{s.name, s.proto}; + for (const auto& s : loader.scenery_list()) + _atlases[s.name] = { s.name, loader.scenery(s.name) }; } } // namespace floormat |
