aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview
diff options
context:
space:
mode:
authorAleric Inglewood2010-10-23 23:58:07 +0200
committerAleric Inglewood2010-10-23 23:58:07 +0200
commitb23d8e7e174c2e68cdd3435cc42907796181d159 (patch)
tree4dae62ed5b57f71b9150319972173ba453c0d325 /linden/indra/newview
parentIMP-663: WARNING: replaceSubstitutionStrings: replaceSubstituionStrings FAILU... (diff)
downloadmeta-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.
Diffstat (limited to 'linden/indra/newview')
-rw-r--r--linden/indra/newview/llfeaturemanager.cpp11
1 files changed, 1 insertions, 10 deletions
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)