@@ -3343,7 +3343,7 @@ int CLuaGUIDefs::GUIGetChatboxLayout ( lua_State* luaVM )
3343
3343
// * text_scale - Returns text scale
3344
3344
3345
3345
CCVarsInterface* pCVars = g_pCore->GetCVars ();
3346
- float iNumber;
3346
+ int iNumber;
3347
3347
float fNumber ;
3348
3348
pCVars->Get (" chat_font" , fNumber );
3349
3349
lua_newtable ( luaVM );
@@ -3361,11 +3361,11 @@ int CLuaGUIDefs::GUIGetChatboxLayout ( lua_State* luaVM )
3361
3361
pCVars->Get (" chat_position_offset_y" , fNumber );
3362
3362
lua_pushnumber ( luaVM, fNumber );
3363
3363
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 );
3366
3366
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 );
3369
3369
lua_setfield ( luaVM, -2 , " chat_position_vertical" );
3370
3370
pCVars->Get (" chat_css_style_text" , fNumber );
3371
3371
lua_pushnumber ( luaVM, fNumber );
0 commit comments