projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
3f852e5
)
fix again
author
hgn
<hgodden00@gmail.com>
Mon, 13 Nov 2023 03:13:27 +0000
(
03:13
+0000)
committer
hgn
<hgodden00@gmail.com>
Mon, 13 Nov 2023 03:13:27 +0000
(
03:13
+0000)
world_routes.c
patch
|
blob
|
history
diff --git
a/world_routes.c
b/world_routes.c
index f512f7ba312714e3863fe1b931b59c119f1a621a..85ae876e7680a93dcaf69c84b635d2aa7839cd5e 100644
(file)
--- a/
world_routes.c
+++ b/
world_routes.c
@@
-934,13
+934,13
@@
static void world_routes_recv_scoreboard( world_instance *world,
if( body == NULL ){
board->data_len = 0;
if( body == NULL ){
board->data_len = 0;
+ return;
}
}
- else {
- if( body->max > NETWORK_LEADERBOARD_MAX_SIZE ){
- vg_error( "Scoreboard leaderboard too big (%u>%u)\n", body->max,
- NETWORK_LEADERBOARD_MAX_SIZE );
- return;
- }
+
+ if( body->max > NETWORK_LEADERBOARD_MAX_SIZE ){
+ vg_error( "Scoreboard leaderboard too big (%u>%u)\n", body->max,
+ NETWORK_LEADERBOARD_MAX_SIZE );
+ return;
}
memcpy( board->data, body->buf, body->max );
}
memcpy( board->data, body->buf, body->max );