Skip to content

Commit 066fcd6

Browse files
committed
Fix d5a7b85: Action 4 data broken for nforenum.
Data for action 4 is two lists, only the second list was updated.
1 parent f5837f8 commit 066fcd6

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/data.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1058,7 +1058,7 @@ NDF_END
10581058
#undef W
10591059

10601060
/* Action 4 strings */
1061-
static const unsigned char _dat4[]={
1061+
static constexpr unsigned char _dat4[]={
10621062
NDF_HEADER(0x03, 5),
10631063
/*Maximum feature:*/ 0x14,
10641064
// Rules for one-byte IDs:
@@ -1080,6 +1080,9 @@ NDF_HEADER(0x03, 5),
10801080
/*0F*/0,
10811081
/*10*/0,
10821082
/*11*/ CTRL_COLOR,
1083+
/*12*/0,
1084+
/*13*/0,
1085+
/*14*/0,
10831086
// Rules for two-byte IDs:
10841087
/*00*/CTRL_SPACE | CTRL_NEWLINE | CTRL_COLOR,
10851088
/*01*/CTRL_SPACE | CTRL_NEWLINE | CTRL_COLOR,
@@ -1104,6 +1107,7 @@ NDF_HEADER(0x03, 5),
11041107
/*14*/CTRL_SPACE,
11051108
NDF_END
11061109
};
1110+
static_assert(std::size(_dat4) == 2 + 1 + (_dat4[2] + 1) * 2 + 1);
11071111

11081112

11091113
/* Randomized action 2 */

0 commit comments

Comments
 (0)