diff options
author | Aleric Inglewood | 2010-10-23 23:58:07 +0200 |
---|---|---|
committer | Aleric Inglewood | 2010-10-23 23:58:07 +0200 |
commit | b23d8e7e174c2e68cdd3435cc42907796181d159 (patch) | |
tree | 4dae62ed5b57f71b9150319972173ba453c0d325 | |
parent | IMP-663: WARNING: replaceSubstitutionStrings: replaceSubstituionStrings FAILU... (diff) | |
download | meta-impy-b23d8e7e174c2e68cdd3435cc42907796181d159.zip meta-impy-b23d8e7e174c2e68cdd3435cc42907796181d159.tar.gz meta-impy-b23d8e7e174c2e68cdd3435cc42907796181d159.tar.bz2 meta-impy-b23d8e7e174c2e68cdd3435cc42907796181d159.tar.xz |
IMP-664: WARNING: addFeature: LLFeatureList::Attempting to add preexisting feature Disregard128DefaultDrawDistance
Fix a bug that causes the last line of the feature table file to be read
twice. This patch also removes the check for name.empty() because that
will never be true, so might as well remove it.
-rw-r--r-- | linden/doc/contributions.txt | 1 | ||||
-rw-r--r-- | linden/indra/newview/llfeaturemanager.cpp | 11 |
2 files changed, 2 insertions, 10 deletions
diff --git a/linden/doc/contributions.txt b/linden/doc/contributions.txt index 3158f2c..cd708fd 100644 --- a/linden/doc/contributions.txt +++ b/linden/doc/contributions.txt | |||
@@ -84,6 +84,7 @@ Aleric Inglewood | |||
84 | IMP-661 | 84 | IMP-661 |
85 | IMP-662 | 85 | IMP-662 |
86 | IMP-663 | 86 | IMP-663 |
87 | IMP-664 | ||
87 | Alissa Sabre | 88 | Alissa Sabre |
88 | VWR-81 | 89 | VWR-81 |
89 | VWR-83 | 90 | VWR-83 |
diff --git a/linden/indra/newview/llfeaturemanager.cpp b/linden/indra/newview/llfeaturemanager.cpp index 35613b7..54da31b 100644 --- a/linden/indra/newview/llfeaturemanager.cpp +++ b/linden/indra/newview/llfeaturemanager.cpp | |||
@@ -250,11 +250,9 @@ BOOL LLFeatureManager::loadFeatureTables() | |||
250 | mTableVersion = version; | 250 | mTableVersion = version; |
251 | 251 | ||
252 | LLFeatureList *flp = NULL; | 252 | LLFeatureList *flp = NULL; |
253 | while (!file.eof() && file.good()) | 253 | while (file >> name) |
254 | { | 254 | { |
255 | char buffer[MAX_STRING]; /*Flawfinder: ignore*/ | 255 | char buffer[MAX_STRING]; /*Flawfinder: ignore*/ |
256 | |||
257 | file >> name; | ||
258 | 256 | ||
259 | if (name.substr(0,2) == "//") | 257 | if (name.substr(0,2) == "//") |
260 | { | 258 | { |
@@ -263,13 +261,6 @@ BOOL LLFeatureManager::loadFeatureTables() | |||
263 | continue; | 261 | continue; |
264 | } | 262 | } |
265 | 263 | ||
266 | if (name.empty()) | ||
267 | { | ||
268 | // This is a blank line | ||
269 | file.getline(buffer, MAX_STRING); | ||
270 | continue; | ||
271 | } | ||
272 | |||
273 | if (name == "list") | 264 | if (name == "list") |
274 | { | 265 | { |
275 | if (flp) | 266 | if (flp) |