We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 054995d commit e08a6adCopy full SHA for e08a6ad
Processor/Instruction.hpp
@@ -509,9 +509,12 @@ bool Instruction::get_offline_data_usage(DataPositions& usage)
509
case USE_INP:
510
if (r[0] >= N_DATA_FIELD_TYPE)
511
throw invalid_program();
512
- if ((unsigned)r[1] >= usage.inputs.size())
513
- throw Processor_Error("Player number too high");
514
- usage.inputs[r[1]][r[0]] = n;
+ if (usage.inputs.size() != 1)
+ {
+ if ((unsigned) r[1] >= usage.inputs.size())
515
+ throw Processor_Error("Player number too high");
516
+ usage.inputs[r[1]][r[0]] = n;
517
+ }
518
return int(n) >= 0;
519
case USE_EDABIT:
520
usage.edabits[{r[0], r[1]}] = n;
0 commit comments