Index: trunk/src/lua/lua_state.cc
===================================================================
--- trunk/src/lua/lua_state.cc	(revision 77)
+++ trunk/src/lua/lua_state.cc	(revision 78)
@@ -296,8 +296,8 @@
 	if (!t) return ref_none;
 	stack_guard guard( this );
-	lua_getglobal( L, t->name.text );
+	lua_getglobal( L, t->name.c_str() );
 	if ( lua_isnil( L, -1 ) )
 	{
-		NV_THROW( runtime_error, std::string( t->name.text ) + " type not registered!" );
+		NV_THROW( runtime_error, std::string( t->name ) + " type not registered!" );
 	}
 	deep_pointer_copy( -1, o );
