Skip to content

Commit 85dae32

Browse files
author
Marek Kulik
committed
Fix variable type for GUIGetChatboxLayout
1 parent a69e307 commit 85dae32

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Client/mods/deathmatch/logic/luadefs/CLuaGUIDefs.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3343,7 +3343,7 @@ int CLuaGUIDefs::GUIGetChatboxLayout ( lua_State* luaVM )
33433343
//* text_scale - Returns text scale
33443344

33453345
CCVarsInterface* pCVars = g_pCore->GetCVars ();
3346-
float iNumber;
3346+
int iNumber;
33473347
float fNumber;
33483348
pCVars->Get("chat_font", fNumber);
33493349
lua_newtable ( luaVM );
@@ -3361,11 +3361,11 @@ int CLuaGUIDefs::GUIGetChatboxLayout ( lua_State* luaVM )
33613361
pCVars->Get("chat_position_offset_y", fNumber);
33623362
lua_pushnumber ( luaVM, fNumber );
33633363
lua_setfield ( luaVM, -2, "chat_position_offset_y" );
3364-
pCVars->Get("chat_position_horizontal", fNumber);
3365-
lua_pushnumber ( luaVM, fNumber );
3364+
pCVars->Get("chat_position_horizontal", iNumber);
3365+
lua_pushnumber ( luaVM, iNumber );
33663366
lua_setfield ( luaVM, -2, "chat_position_horizontal" );
3367-
pCVars->Get("chat_position_vertical", fNumber);
3368-
lua_pushnumber ( luaVM, fNumber );
3367+
pCVars->Get("chat_position_vertical", iNumber);
3368+
lua_pushnumber ( luaVM, iNumber );
33693369
lua_setfield ( luaVM, -2, "chat_position_vertical" );
33703370
pCVars->Get("chat_css_style_text", fNumber);
33713371
lua_pushnumber ( luaVM, fNumber );

0 commit comments

Comments
 (0)