From: divverent Date: Sat, 11 Sep 2010 00:20:09 +0000 (+0000) Subject: fix an inverted return value X-Git-Tag: xonotic-v0.1.0preview~230^2~29 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e31ea19a584eb7675ebb9133d665d44ef9438a3e;p=xonotic%2Fdarkplaces.git fix an inverted return value git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10455 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/zone.c b/zone.c index fb314e4b..7c601cf0 100644 --- a/zone.c +++ b/zone.c @@ -891,7 +891,7 @@ void Memory_Init_Commands (void) Cvar_SetValueQuick(&sys_memsize_virtual, 8388608); // then improve status.dwLength = sizeof(status); - if(!GlobalMemoryStatusEx(&status)) + if(GlobalMemoryStatusEx(&status)) { Cvar_SetValueQuick(&sys_memsize_physical, status.ullTotalPhys / 1048576.0); Cvar_SetValueQuick(&sys_memsize_virtual, min(sys_memsize_virtual.value, status.ullTotalVirtual / 1048576.0));