mirror of https://github.com/OpenTTD/OpenTTD
(svn r14761) -Fix (r14730): missed the one DEREF_CLIENT in the random debug code :(
parent
105b84e343
commit
703831ec6d
|
@ -41,8 +41,8 @@ void SetRandomSeed(uint32 seed)
|
||||||
|
|
||||||
uint32 DoRandom(int line, const char *file)
|
uint32 DoRandom(int line, const char *file)
|
||||||
{
|
{
|
||||||
if (_networking && (DEREF_CLIENT(0)->status != STATUS_INACTIVE || !_network_server)) {
|
if (_networking && (GetNetworkClientSocket(0)->status != STATUS_INACTIVE || !_network_server)) {
|
||||||
printf("Random [%d/%d] %s:%d\n",_frame_counter, (byte)_current_company, file, line);
|
printf("Random [%d/%d] %s:%d\n", _frame_counter, (byte)_current_company, file, line);
|
||||||
}
|
}
|
||||||
|
|
||||||
return _random.Next();
|
return _random.Next();
|
||||||
|
|
Loading…
Reference in New Issue