Index: trunk/src/lua/lua_state.cc
===================================================================
--- trunk/src/lua/lua_state.cc	(revision 304)
+++ trunk/src/lua/lua_state.cc	(revision 305)
@@ -118,6 +118,7 @@
 	m_global = false;
 	m_level  = lua_gettop( m_state );
-	if ( !p.resolve( m_state, global ) )
-	{
+	if ( !p.resolve( m_state, global ) || lua_type(m_state, -1) != LUA_TTABLE )
+	{
+		NV_LOG( LOG_ERROR, "Could not resolve table!" );
 		// TODO : error handling
 	}
@@ -129,6 +130,7 @@
 	m_global = false;
 	m_level  = lua_gettop( m_state );
-	if ( !p.resolve( m_state, false ) )
-	{
+	if ( !p.resolve( m_state, false ) || lua_type(m_state, -1) != LUA_TTABLE )
+	{
+		NV_LOG( LOG_ERROR, "Could not resolve table!" );
 		// TODO : error handling
 	}
