diff options
author | rubidium <rubidium@openttd.org> | 2008-12-28 22:23:43 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-12-28 22:23:43 +0000 |
commit | 703831ec6dc93f96b2ac21ed6187b53c92e64919 (patch) | |
tree | 97f71815400469be0cd8bb22101dc3e7806bd837 /src | |
parent | 105b84e343276be08b9523b7bde2c17c1f470ba1 (diff) | |
download | openttd-703831ec6dc93f96b2ac21ed6187b53c92e64919.tar.xz |
(svn r14761) -Fix (r14730): missed the one DEREF_CLIENT in the random debug code :(
Diffstat (limited to 'src')
-rw-r--r-- | src/core/random_func.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/random_func.cpp b/src/core/random_func.cpp index 5147509e6..ae3fcf95f 100644 --- a/src/core/random_func.cpp +++ b/src/core/random_func.cpp @@ -41,8 +41,8 @@ void SetRandomSeed(uint32 seed) uint32 DoRandom(int line, const char *file) { - if (_networking && (DEREF_CLIENT(0)->status != STATUS_INACTIVE || !_network_server)) { - printf("Random [%d/%d] %s:%d\n",_frame_counter, (byte)_current_company, file, line); + if (_networking && (GetNetworkClientSocket(0)->status != STATUS_INACTIVE || !_network_server)) { + printf("Random [%d/%d] %s:%d\n", _frame_counter, (byte)_current_company, file, line); } return _random.Next(); |