diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-24 23:35:45 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-24 23:36:32 +0100 |
commit | f97fc145a3e70598446c3672dcbb528e181777c1 (patch) | |
tree | 4fb7a8dd29e91a1cd8137fc4cfc0f3f8b526617c /src | |
parent | 5e3cd10000941574de76620d8d5249924181d824 (diff) |
editor: clamp bbox_size min value to {1,1}
Diffstat (limited to 'src')
-rw-r--r-- | src/object.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/object.cpp b/src/object.cpp index 4339e055..b652a439 100644 --- a/src/object.cpp +++ b/src/object.cpp @@ -348,6 +348,8 @@ object::operator object_proto() const void object::set_bbox(Vector2b offset_, Vector2b bb_offset_, Vector2ub bb_size_, pass_mode pass) { + fm_assert(Vector2ui(bb_size_).product() != 0); + if (offset != offset_) if (!is_dynamic()) c->mark_scenery_modified(); |