Skip to content

Commit 6c4ab58

Browse files
authored
Merge pull request #452 from scratchcpp/initialize_monitorprivate_changefunc
Fix #436: Initialize MonitorPrivate::changeFunc
2 parents d087230 + ab7f793 commit 6c4ab58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scratch/monitor_p.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ struct MonitorPrivate
2222
std::shared_ptr<Script> script;
2323
std::shared_ptr<IBlockSection> blockSection;
2424
std::shared_ptr<Block> block; // Compiler needs shared_ptr
25-
MonitorChangeFunc changeFunc;
25+
MonitorChangeFunc changeFunc = nullptr;
2626
VirtualMachine changeValueVM;
2727
unsigned int width = 0;
2828
unsigned int height = 0;

0 commit comments

Comments
 (0)