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~236 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f1590132f417547dc598a042bed4fb41b1951d4f;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 ::stable-branch::merge=e31ea19a584eb7675ebb9133d665d44ef9438a3e --- diff --git a/zone.c b/zone.c index 296e8550..43774da6 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));