Skip to content

Commit fc629f1

Browse files
committed
fix #575, rescheduleScriptBlock() endpoint bug
1 parent 4997618 commit fc629f1

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

VERSIONS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ development head (in the master branch):
1717
add rowSums() and colSums() functions to Eidos, for use with matrices as a faster alternative to apply()
1818
add the PCG random number generator, switch to pcg32_fast and pcg64_fast, remove all use of the old taus2 and MT19937-64 generators; note this completely breaks backward reproducibility
1919
fix various bugs involving conflicts between defined constants and other symbols, including #573 and #574; this sets new definition rules that could break some existing scripts (but is unlikely to)
20+
fix #575, QtSLiM terminates early when single-stepping with a rescheduled script block
2021

2122

2223
version 5.1 (Eidos version 4.1):

core/community_eidos.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1257,6 +1257,10 @@ EidosValue_SP Community::ExecuteMethod_rescheduleScriptBlock(EidosGlobalStringID
12571257
}
12581258
}
12591259

1260+
last_script_block_tick_cached_ = false;
1261+
script_block_types_cached_ = false;
1262+
scripts_changed_ = true;
1263+
12601264
#ifdef SLIMGUI
12611265
gSLiMScheduling << "\t\trescheduleScriptBlock() called (with a ticks schedule) for block: ";
12621266
block->PrintDeclaration(gSLiMScheduling, this);

0 commit comments

Comments
 (0)