Skip to content

Commit

Permalink
Replace zero constants with NULL pointers
Browse files Browse the repository at this point in the history
This was a minor slip-up on my end.
  • Loading branch information
stellarLuminant committed Feb 14, 2019
1 parent 892b0fa commit e5f3fb2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions netcode.c
Expand Up @@ -4780,10 +4780,10 @@ struct netcode_address_t * netcode_server_client_address( struct netcode_server_
netcode_assert( server );

if (!server->running)
return 0;
return NULL;

if (client_index < 0 || client_index >= server->max_clients)
return 0;
return NULL;

return &server->client_address[client_index];
}
Expand Down

0 comments on commit e5f3fb2

Please sign in to comment.