diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-12-01 18:32:32 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-12-01 18:33:20 +0100 |
commit | acecc8744c17dc266f9369ab99df2ced084abc9a (patch) | |
tree | 96d639b9bdc2e69fc24a959b498d8e463c5492a9 | |
parent | daa16769f087b60cc67517171d942db967b2949e (diff) |
src/anim-atlas: fix dangling reference
Found with: asan
-rw-r--r-- | src/anim-atlas.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/anim-atlas.cpp b/src/anim-atlas.cpp index 2423c114..0726048e 100644 --- a/src/anim-atlas.cpp +++ b/src/anim-atlas.cpp @@ -41,7 +41,7 @@ anim_atlas::anim_atlas(StringView name, const ImageView2D& image, anim_def info) { fm_assert(!_info.groups.empty()); - const Size<3>& size = image.pixels().size(); + const Size<3> size = image.pixels().size(); fm_assert(size[0]*size[1] == _info.pixel_size.product()); fm_assert(size[2] >= 3 && size[2] <= 4); |