From af53fe67405a4e1d897da8720fea7983bb494e06 Mon Sep 17 00:00:00 2001 From: lethosor Date: Thu, 19 Jul 2018 14:48:28 -0400 Subject: [PATCH] embark-assistant: fix x=16, y=16 dimensions --- docs/changelog.txt | 3 +++ plugins/embark-assistant/finder_ui.cpp | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/changelog.txt b/docs/changelog.txt index 5f422ff5f..27ee805f2 100644 --- a/docs/changelog.txt +++ b/docs/changelog.txt @@ -37,6 +37,9 @@ changelog.txt uses a syntax similar to RST, with a few special sequences: ================================================================================ # Future +## Fixes +- `embark-assistant`: fixed crash when entering finder with a 16x16 embark selected, and added 16 to dimension choices + ## Internals - Core: various thread safety and memory management improvements - Fixed cmake build dependencies for generated header files diff --git a/plugins/embark-assistant/finder_ui.cpp b/plugins/embark-assistant/finder_ui.cpp index f0706b144..5578150ea 100644 --- a/plugins/embark-assistant/finder_ui.cpp +++ b/plugins/embark-assistant/finder_ui.cpp @@ -316,14 +316,14 @@ namespace embark_assist { switch (i) { case fields::x_dim: - for (int16_t k = 1; k < 16; k++) { + for (int16_t k = 1; k <= 16; k++) { element->list.push_back({ std::to_string(k), k }); } break; case fields::y_dim: - for (int16_t k = 1; k < 16; k++) { + for (int16_t k = 1; k <= 16; k++) { element->list.push_back({ std::to_string(k), k }); }