diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2019-12-13 11:06:20 -0500 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2019-12-13 11:06:20 -0500 |
commit | 25e68952de525e41d8d11755837e6e393f1d5c86 (patch) | |
tree | 6a0745e7e32e58320de82fdc911f82fce5e83053 | |
parent | 97490cdd4982a49ad541e28ff110c71305ba5a4d (diff) |
ms32_sprite.cpp: Fix assert (nw)
-rw-r--r-- | src/mame/video/ms32_sprite.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/video/ms32_sprite.cpp b/src/mame/video/ms32_sprite.cpp index 7ad0fd84567..0a98f2cddd1 100644 --- a/src/mame/video/ms32_sprite.cpp +++ b/src/mame/video/ms32_sprite.cpp @@ -795,7 +795,7 @@ inline void ms32_sprite_device::draw_sprite_core(BitmapType &dest, const rectang do { assert(dest.valid()); assert(dest.cliprect().contains(cliprect)); - assert(code < elements()); + assert(code < gfx(0)->elements()); // ignore empty/invalid cliprects if (cliprect.empty()) @@ -901,7 +901,7 @@ inline void ms32_sprite_device::draw_sprite_core(BitmapType &dest, const rectang assert(dest.valid()); assert(priority.valid()); assert(dest.cliprect().contains(cliprect)); - assert(code < elements()); + assert(code < gfx(0)->elements()); // ignore empty/invalid cliprects if (cliprect.empty()) |