Additional change to r887.

This commit is contained in:
Birunthan Mohanathas 2011-08-01 17:20:24 +00:00
parent 5eef7a21c7
commit 904ed76960

View File

@ -177,7 +177,7 @@ int LuaScript::RunFunctionWithReturn(const char* funcName, double& numValue, std
{ {
const char* str = lua_tostring(m_State, -1); const char* str = lua_tostring(m_State, -1);
strValue = ConvertToWide(str); strValue = ConvertToWide(str);
numValue = 0; numValue = strtod(str, NULL);
} }
lua_pop(m_State, 2); lua_pop(m_State, 2);