mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-10 08:15:00 -04:00
handle zero numeric values in forkState
This commit is contained in:
parent
5f0a2393df
commit
b676c25fb4
1 changed files with 3 additions and 3 deletions
|
@ -298,15 +298,15 @@ class RecipeState {
|
|||
this.progress = forkState.progress
|
||||
}
|
||||
|
||||
if (forkState.numRegisters) {
|
||||
if (forkState.numRegisters || forkState.numRegisters == 0) {
|
||||
this.numRegisters = forkState.numRegisters;
|
||||
}
|
||||
|
||||
if (forkState.numJumps) {
|
||||
if (forkState.numJumps || forkState.numJumps == 0) {
|
||||
this.numJumps = forkState.numJumps;
|
||||
}
|
||||
|
||||
if (forkState.forkOffset) {
|
||||
if (forkState.forkOffset || forkState.forkOffset == 0) {
|
||||
this.forkOffset = forkState.forkOffset;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue