From c066ca0d62dc055b379ede509c3db6b19757adf9 Mon Sep 17 00:00:00 2001 From: Lunkhound Date: Fri, 1 Jul 2016 18:03:39 -0700 Subject: [PATCH] Fix out-of-bounds array access (was asserting in example-10-font, debug build) --- examples/common/cube_atlas.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/common/cube_atlas.cpp b/examples/common/cube_atlas.cpp index 7b83f6f75..9407363a3 100644 --- a/examples/common/cube_atlas.cpp +++ b/examples/common/cube_atlas.cpp @@ -149,6 +149,7 @@ bool RectanglePacker::addRectangle(uint16_t _width, uint16_t _height, uint16_t& { m_skyline.erase(m_skyline.begin() + ii); --ii; + --num; } else {