From 7655f1bdad74285f3926d72b2c6ca79505b12e39 Mon Sep 17 00:00:00 2001 From: Mark Date: Fri, 24 Jun 2022 21:27:49 -0700 Subject: [PATCH] Fixed a bug --- src/utility/bitmap.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utility/bitmap.cpp b/src/utility/bitmap.cpp index f5f3490..89a5782 100644 --- a/src/utility/bitmap.cpp +++ b/src/utility/bitmap.cpp @@ -4,9 +4,9 @@ Bitmap::Bitmap(size_t w, size_t h) { this->width = w; this->height = h; - this->data.reserve(h); + this->data.resize(h); for (size_t r = 0; r < h; r++) { - data[r].reserve(w); + data[r].resize(w); } clear();