Skip to content

Commit 7a7701a

Browse files
committed
Fix racing condition bug loading Ink story while setting variable.
1 parent 6696536 commit 7a7701a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

blade-engine/src/com/bladecoder/engine/ink/InkManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public boolean compareVariable(String name, String value) {
147147
}
148148
}
149149

150-
public void setVariable(String name, String value) throws Exception {
150+
public synchronized void setVariable(String name, String value) throws Exception {
151151
if (story.getVariablesState().get(name) instanceof InkList) {
152152

153153
InkList rawList = (InkList) story.getVariablesState().get(name);

0 commit comments

Comments
 (0)