Skip to content

Commit

Permalink
Fixed instancing crash
Browse files Browse the repository at this point in the history
  • Loading branch information
dsrw committed Oct 11, 2023
1 parent 52bf56a commit d13209a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vmlib/enu/class_macros.nim
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import std / [macros, strformat, strutils, sugar, sequtils, genasts]
import std / [macros, strutils, sequtils]
import types
import base_api, macro_helpers

Expand Down Expand Up @@ -263,4 +263,7 @@ macro load_enu_script*(file_name: string, base_type: untyped, convert: varargs[u
var move_mode {.inject.} = 1
include loops
`inner`
# If a new instance doesn't ever yield the interpreter can crash. Unsure
# why, but probably fixable. Sleep before exit as a workaround.
sleep 0
run_script(me, false)

0 comments on commit d13209a

Please sign in to comment.