Commit db1131e
committed
Fix nil pointer panic when InputInterface is never selected
NewGameState now initialises InputInterface to the always-enabled
composite (arrow keys + keyboard + gamepad) so it is never nil.
Previously, timing out the control selection screen left InputInterface
nil, causing a panic in updateScrollIn once scroll-in completed and the
game began polling for player input.1 parent 5ce25c6 commit db1131e
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
| |||
0 commit comments