Skip to content

Commit 105bfa9

Browse files
committed
Fix warning in CScriptArgReader by casting return value
1 parent bf99a83 commit 105bfa9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Shared/sdk/CScriptArgReader.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1016,7 +1016,7 @@ class CScriptArgReader
10161016
int iArgument = lua_type(m_luaVM, -1);
10171017
if (iArgument == LUA_TNUMBER)
10181018
{
1019-
outList.push_back(lua_tonumber(m_luaVM, -1));
1019+
outList.push_back(static_cast<float>(lua_tonumber(m_luaVM, -1)));
10201020
}
10211021
}
10221022
m_iIndex++;

0 commit comments

Comments
 (0)