fix again
[carveJwlIkooP6JGAAIwe30JlM.git] / world_routes.c
index 75ebae8af66a92afdc58d81eb1f6971d3ba89cb1..85ae876e7680a93dcaf69c84b635d2aa7839cd5e 100644 (file)
@@ -932,8 +932,10 @@ static void world_routes_recv_scoreboard( world_instance *world,
    struct leaderboard_cache *board = &world->leaderboard_cache[ route_id ];
    board->status = status;
 
-   if( body == NULL )
+   if( body == NULL ){
       board->data_len = 0;
+      return;
+   }
 
    if( body->max > NETWORK_LEADERBOARD_MAX_SIZE ){
       vg_error( "Scoreboard leaderboard too big (%u>%u)\n", body->max,