Skip to content

Commit 29c53c4

Browse files
committed
Fix check in destroyClassSelGUI
1 parent 9dfc910 commit 29c53c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

amx/client/client.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ function destroyClassSelGUI()
211211
setGravity(0.008)
212212
setElementCollisionsEnabled(localPlayer, true)
213213
showCursor(false)
214-
if g_ClassSelectionInfo then
214+
if g_ClassSelectionInfo and g_ClassSelectionInfo.gui then
215215
removeEventHandler ( "onClientGUIClick", g_ClassSelectionInfo.gui.btnLeft, ClassSelLeft )
216216
removeEventHandler ( "onClientGUIClick", g_ClassSelectionInfo.gui.btnRight, ClassSelRight )
217217
removeEventHandler ( "onClientGUIClick", g_ClassSelectionInfo.gui.btnSpawn, ClassSelSpawn )

0 commit comments

Comments
 (0)