aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llagentpilot.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:50 -0500
committerJacek Antonelli2008-08-15 23:44:50 -0500
commit89fe5dab825a62a0e3fd8d248cbc91c65eb2a426 (patch)
treebcff14b7888d04a2fec799c59369f6095224bd08 /linden/indra/newview/llagentpilot.cpp
parentSecond Life viewer sources 1.13.3.2 (diff)
downloadmeta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.zip
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.gz
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.bz2
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.xz
Second Life viewer sources 1.14.0.0
Diffstat (limited to 'linden/indra/newview/llagentpilot.cpp')
-rw-r--r--linden/indra/newview/llagentpilot.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/linden/indra/newview/llagentpilot.cpp b/linden/indra/newview/llagentpilot.cpp
index 45c1770..45d29cc 100644
--- a/linden/indra/newview/llagentpilot.cpp
+++ b/linden/indra/newview/llagentpilot.cpp
@@ -55,13 +55,14 @@ LLAgentPilot::~LLAgentPilot()
55 55
56void LLAgentPilot::load(const char *filename) 56void LLAgentPilot::load(const char *filename)
57{ 57{
58 llifstream file; 58 if(!filename) return;
59 59
60 file.open(filename); 60 llifstream file(filename);
61 61
62 if (!file) 62 if (!file)
63 { 63 {
64 llinfos << "Couldn't open " << filename << ", aborting agentpilot load!" << llendl; 64 lldebugs << "Couldn't open " << filename
65 << ", aborting agentpilot load!" << llendl;
65 return; 66 return;
66 } 67 }
67 else 68 else
@@ -90,7 +91,7 @@ void LLAgentPilot::load(const char *filename)
90void LLAgentPilot::save(const char *filename) 91void LLAgentPilot::save(const char *filename)
91{ 92{
92 llofstream file; 93 llofstream file;
93 file.open(filename); 94 file.open(filename); /*Flawfinder: ignore*/
94 95
95 if (!file) 96 if (!file)
96 { 97 {