diff options
Diffstat (limited to 'linden/indra/newview/llagentpilot.cpp')
-rw-r--r-- | linden/indra/newview/llagentpilot.cpp | 9 |
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 | ||
56 | void LLAgentPilot::load(const char *filename) | 56 | void 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) | |||
90 | void LLAgentPilot::save(const char *filename) | 91 | void 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 | { |