Here is the minimal working example of the bug: Just run the mod and examine the console output.
Expected result: console contains 130 rows of numbers that look like this:
Code: Select all
1_000 2_000
1_001 2_001
1_002 2_002
1_003 2_003
...
1_127 2_127
1_128 2_128
1_129 2_129
Actual result: console contains the following 130 rows:
Code: Select all
1_000 2_000
1_001 2_001
1_002 2_002
1_003 2_003
...
1_124 2_124
1_125 2_125
1_126 2_126
1_127 2_127
2_128 2_128
2_129 2_129
Strings "1_128" and "1_129" are never printed, and strings "2_128" and "2_129" are printed twice.
What does the example contain?
1. A function with two string parameters.
2. This function is called 130 times with different strings. The first parameter is always in format "1_N", where N is the function call number, counting from 0. The second parameter is in format "2_N". Therefore, there are 130 unique first parameters, and 130 unique second parameters, and total of 260 unique strings used as function parameters.
3. All the function calls are located inside a single function (OnRegister, to be precise).
Edit: forgot to mention: GZDoom g3.6.0 - 2018-10-10 01:45:02 -0400 - SDL version