1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-09-29 22:56:07 -04:00

Fixes #523, unbind the escapeMenu when game is unloaded (#524)

This commit is contained in:
Intyre 2020-07-03 02:03:15 +02:00 committed by GitHub
parent 6367929688
commit 5b9a0fe5bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,6 +55,7 @@ func (v *Game) OnLoad(loading d2screen.LoadingState) {
func (v *Game) OnUnload() error {
d2input.UnbindHandler(v.gameControls) // TODO: hack
d2input.UnbindHandler(v.escapeMenu) // TODO: hack
v.gameClient.Close()
return nil