From b2be7d57642197c0f65d2645c767c4f868ababb1 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 11 Feb 2024 06:47:28 +0100 Subject: implement anim_loader --- serialize/savegame.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'serialize') 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_ f(id); switch (type) { - case atlas_type::anim: a = loader.anim_atlas(get_atlas(id), {}); return; + case atlas_type::anim: a = loader.anim_atlas(get_atlas(id), {}, loader_policy::warn); return; case atlas_type::vobj: a = loader.vobj(get_atlas(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(); -- cgit v1.2.3