X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=world_routes.h;h=00dee4ea0c79d742a78ad3c023cce8d3f1ed7f65;hb=e70b6d550d63af95cafd9ffdee1918faf02a6892;hp=acb58131436f80b1a43ef7864a561410d22e5ce4;hpb=f99902f513b0ad606437bf32de47405dd4ea5f98;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/world_routes.h b/world_routes.h index acb5813..00dee4e 100644 --- a/world_routes.h +++ b/world_routes.h @@ -455,7 +455,7 @@ VG_STATIC void world_routes_create_mesh( world_instance *world, u32 route_id ) VG_STATIC void world_routes_generate( world_instance *world ) { vg_info( "Generating route meshes\n" ); - world->scene_lines = scene_init( world_global.generic_heap, 200000, 300000 ); + world->scene_lines = scene_init( world->heap, 200000, 300000 ); for( u32 i=0; ient_gate); i++ ){ ent_gate *gate = mdl_arritm( &world->ent_gate, i ); @@ -504,7 +504,7 @@ VG_STATIC void world_routes_generate( world_instance *world ) scene_upload( world->scene_lines, &world->mesh_route_lines ); } vg_release_thread_sync(); - vg_linear_del( world_global.generic_heap, world->scene_lines ); + vg_linear_del( world->heap, world->scene_lines ); world_routes_clear( world ); }