Skip to content

Commit fd19382

Browse files
committed
fix progress update
1 parent a7e49f9 commit fd19382

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Assets/Plugins/Slua_Managed/LuaSvr.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// The MIT License (MIT)
1+
// The MIT License (MIT)
22

33
// Copyright 2015 Siney/Pangweiwei [email protected]
44
//
@@ -150,6 +150,7 @@ private IEnumerator doBind(IntPtr L,Action<int> _tick,Action complete)
150150
action(L);
151151
bindProgress = (int)(((float)n / list.Count) * 98.0) + 2;
152152
if (_tick!=null && lastProgress != bindProgress && bindProgress % 5 == 0) {
153+
lastProgress = bindProgress;
153154
tick (bindProgress);
154155
yield return null;
155156
}

0 commit comments

Comments
 (0)