This website works better with JavaScript.
Home
Explore
Help
Sign In
Archivist
/
UserScript
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
fixed prepare not resetting instr ptr on reloads
master
Ludovic 'Archivist' Lagouardette
1 year ago
parent
46c5e1f894
commit
c2032c77c4
1 changed files
with
1 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
priv_include/UserScript/interpreter.h
+ 1
- 0
priv_include/UserScript/interpreter.h
View File
@ -171,6 +171,7 @@ namespace scripting {
std
:
:
vector
<
script_error
>
errors
;
auto
lexed
=
ast
:
:
lex
(
code
,
errors
)
;
auto
parsed
=
ast
:
:
parse
(
lexed
,
errors
)
;
instruction_ptr
=
0
;
if
(
errors
.
empty
(
)
)
{
bytecode
=
generate
(
errors
,
parsed
,
repeating
)
;
}
Write
Preview
Loading…
Cancel
Save