From 904ed7696080f3270cc2600ac78de228ff74ba43 Mon Sep 17 00:00:00 2001 From: Birunthan Mohanathas Date: Mon, 1 Aug 2011 17:20:24 +0000 Subject: [PATCH] Additional change to r887. --- Library/lua/LuaScript.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/lua/LuaScript.cpp b/Library/lua/LuaScript.cpp index 021e7b84..3e929f27 100644 --- a/Library/lua/LuaScript.cpp +++ b/Library/lua/LuaScript.cpp @@ -177,7 +177,7 @@ int LuaScript::RunFunctionWithReturn(const char* funcName, double& numValue, std { const char* str = lua_tostring(m_State, -1); strValue = ConvertToWide(str); - numValue = 0; + numValue = strtod(str, NULL); } lua_pop(m_State, 2);