diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-02-11 06:47:28 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-02-11 08:49:52 +0100 |
commit | b2be7d57642197c0f65d2645c767c4f868ababb1 (patch) | |
tree | b711d99a22fe1de220e6458a6e5848b4e3af6b12 /serialize | |
parent | 0de0eb1fe18949a328b9e76a2dbf6319692cc3cb (diff) |
implement anim_loader
Diffstat (limited to 'serialize')
-rw-r--r-- | serialize/savegame.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/serialize/savegame.cpp b/serialize/savegame.cpp index a1aae8bf..620d7457 100644 --- a/serialize/savegame.cpp +++ b/serialize/savegame.cpp @@ -767,7 +767,7 @@ struct reader final : visitor_<reader> f(id); switch (type) { - case atlas_type::anim: a = loader.anim_atlas(get_atlas<atlas_type::anim>(id), {}); return; + case atlas_type::anim: a = loader.anim_atlas(get_atlas<atlas_type::anim>(id), {}, loader_policy::warn); return; case atlas_type::vobj: a = loader.vobj(get_atlas<atlas_type::vobj>(id)).atlas; return; case atlas_type::ground: case atlas_type::wall: @@ -882,7 +882,7 @@ ok: atlas = loader.wall_atlas(str, loader_policy::warn).get(); goto ok; case atlas_type::anim: - atlas = loader.anim_atlas(str, {}).get(); + atlas = loader.anim_atlas(str, {}, loader_policy::warn).get(); goto ok; case atlas_type::vobj: atlas = loader.vobj(str).atlas.get(); |