From 196085eb0f4304441c014b8bf6a2d84b46784875 Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 20 Jan 2009 12:03:06 +0000 Subject: (svn r15164) -Fix: don't list patches/settings with list_patches that are not valid anymore --- src/settings.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/settings.cpp b/src/settings.cpp index 73574bb1c..6440a7687 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -2105,6 +2105,7 @@ void IConsoleListPatches(const char *prefilter) IConsolePrintF(CC_WARNING, "All patches with their current value:"); for (const SettingDesc *sd = _patch_settings; sd->save.cmd != SL_END; sd++) { + if (!SlIsObjectCurrentlyValid(sd->save.version_from, sd->save.version_to)) continue; if (prefilter != NULL) { if (strncmp(sd->desc.name, prefilter, min(strlen(sd->desc.name), strlen(prefilter))) != 0) continue; } -- cgit v1.2.3-70-g09d2