From 5c8a281e00d38b024d08cc41083272ef57ac71e0 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 28 Dec 2008 22:23:43 +0000 Subject: (svn r14761) -Fix (r14730): missed the one DEREF_CLIENT in the random debug code :( --- src/core/random_func.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core') 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(); -- cgit v1.2.3-70-g09d2