fix warning

This commit is contained in:
Glenn Maynard
2004-09-24 03:48:27 +00:00
parent 0775e54030
commit 3ad6bc0303
+3 -1
View File
@@ -230,11 +230,13 @@ float Lua::RunExpressionF( const CString &str )
RunExpression( str );
float result = lua_tonumber( L, -1 );
float result = (float) lua_tonumber( L, -1 );
lua_pop( L, -1 );
return result;
} catch( const CString &err ) {
/* Why does VC7 say "unreachable code" here? This isn't unreachable, and
* it doesn't warn in RunExpressionB ... */
RageException::Throw( "Error running \"%s\": %s", str.c_str(), err.c_str() );
}
}