diff options
Diffstat (limited to 'NorthstarDLL/printmaps.cpp')
-rw-r--r-- | NorthstarDLL/printmaps.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/NorthstarDLL/printmaps.cpp b/NorthstarDLL/printmaps.cpp index af3ea275..bd89946b 100644 --- a/NorthstarDLL/printmaps.cpp +++ b/NorthstarDLL/printmaps.cpp @@ -128,7 +128,7 @@ int, __fastcall, (const char const* cmdname, const char const* partial, char com const int queryLength = strlen(query);
int numMaps = 0;
- for (int i = 0; i < COMMAND_COMPLETION_MAXITEMS && i < vMapList.size(); i++)
+ for (int i = 0; i < vMapList.size() && numMaps < COMMAND_COMPLETION_MAXITEMS; i++)
{
if (!strncmp(query, vMapList[i].name.c_str(), queryLength))
{
|