Commit 592b459e authored by ceddral's avatar ceddral
Browse files

game: menu: lock token order

parent 76608089
......@@ -57,7 +57,8 @@ func (m *GameMenu) Redraw(s GameState) {
maxlen := len(buf)
line++
buf = buf[:0]
for t, count := range p.tokens {
for t := Token(0); t < tMax; t++ {
count := p.tokens[t]
if count > 0 {
buf = append(buf, fmt.Sprintf("%d%c", count, t.toByte())...)
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment