internal/uidriver/js: Bug fix: Compile error

This commit is contained in:
Hajime Hoshi 2021-01-25 22:49:45 +09:00
parent 10e5e9e633
commit e844c257f7

View File

@ -113,7 +113,7 @@ func (i *Input) GamepadIDs() []driver.GamepadID {
return nil
}
r := make([]driver.GamepadID, 0, i.gamepads)
r := make([]driver.GamepadID, 0, len(i.gamepads))
for id := range i.gamepads {
r = append(r, id)
}