command line, multisampling, optimisations
[csRadar.git] / vmf.h
diff --git a/vmf.h b/vmf.h
index d2bbbd214dd21b85c74a2edf2f429481f28a67d1..ec9573aaa8c21feeebca6fe9716e1f976290d742 100644 (file)
--- a/vmf.h
+++ b/vmf.h
@@ -725,6 +725,12 @@ vmf_map *vmf_init( const char *path, int load_models )
        vmf_map *map = csr_calloc( sizeof( vmf_map ) );
        map->root = vdf_open_file( path );
        
+       if( !map->root )
+       {
+               free( map );
+               return NULL;
+       }
+       
        // Prepare instances
        vmf_load_all_instances( map, map->root );