Go で書き直した Ikemen
Revision | cff7d7c94bbd73cf5592101a0df47dfd649dd713 (tree) |
---|---|
Time | 2017-05-07 21:28:46 |
Author | SUEHIRO <supersuehiro@user...> |
Commiter | SUEHIRO |
range に書き直し
@@ -706,7 +706,7 @@ func systemScriptInit(l *lua.LState) { | ||
706 | 706 | } |
707 | 707 | sys.await(FPS) |
708 | 708 | } |
709 | - for i := 0; i < len(sys.cgi); i++ { | |
709 | + for i := range sys.cgi { | |
710 | 710 | if i < len(sys.lifebar.fa[sys.tmode[i&1]]) { |
711 | 711 | fa := sys.lifebar.fa[sys.tmode[i&1]][i] |
712 | 712 | fa.face = sys.cgi[i].sff.getOwnPalSprite( |