From 3f5ebfbde395e2bdb619d348c0538042ad9f041c Mon Sep 17 00:00:00 2001 From: nillerusr Date: Mon, 19 Sep 2022 17:54:09 +0300 Subject: [PATCH] game(client): fix back button in touch --- game/client/touch.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/game/client/touch.cpp b/game/client/touch.cpp index 9018c304..cd6ed2c8 100644 --- a/game/client/touch.cpp +++ b/game/client/touch.cpp @@ -410,6 +410,10 @@ void CTouchControls::Init() ResetToDefaults(); CTouchTexture *texture = new CTouchTexture; + texture->isInAtlas = false; + texture->textureID = 0; + texture->X0 = 0; texture->X1 = 0; texture->Y0 = 0; texture->Y1 = 0; + Q_strncpy( texture->szName, "vgui/touch/back", sizeof(texture->szName) ); textureList.AddToTail(texture);