absolutely SHIT bug
[carveJwlIkooP6JGAAIwe30JlM.git] / world_render.c
index 9e5527bd435928645384b00cb664f3bfb452e9e0..2cbd07beaecd4519cb1920cc9f787b03acb81c0d 100644 (file)
@@ -417,6 +417,7 @@ void world_render_challenges( world_instance *world, struct world_pass *pass,
                               v3f pos, int layer_depth ){
    if( !world ) return;
    if( skaterift.activity == k_skaterift_replay ) return;
+   if( world != world_current_instance() ) return;
 
    /* sort lists */
    f32 radius = 40.0f;
@@ -453,7 +454,7 @@ void world_render_challenges( world_instance *world, struct world_pass *pass,
       while( mdl_entity_id_type(next) == k_ent_objective ){
          u32 index = mdl_entity_id_id( next );
          objective_list[ objective_count ++ ] = index;
-         
+
          ent_objective *objective = mdl_arritm( &world->ent_objective, index );
          next = objective->id_next;
       }