1.1 --- a/core/smn_maplists.cpp Mon Dec 10 12:19:24 2007 +0000
1.2 +++ b/core/smn_maplists.cpp Mon Dec 10 22:20:53 2007 +0000
1.3 @@ -524,10 +524,6 @@
1.4
1.5 if ((fp = fopen(pMapList->path, "rt")) == NULL)
1.6 {
1.7 - char error_msg[255];
1.8 - strncopy(error_msg, "Unknown error", sizeof(error_msg));
1.9 - g_LibSys.GetPlatformError(error_msg, sizeof(error_msg));
1.10 - g_Logger.LogError("ReadMapList(): Could not open file \"%s\": %s\n", pMapList->path, error_msg);
1.11 return false;
1.12 }
1.13
1.14 @@ -658,6 +654,7 @@
1.15 pContext->LocalToString(params[1], &name);
1.16 pContext->LocalToString(params[2], &file);
1.17
1.18 + s_MapLists.UpdateCache();
1.19 s_MapLists.AddOrUpdateDefault(name, file);
1.20
1.21 return 1;