From 2bebf011c36e465472412e927272ae48ccd37804 Mon Sep 17 00:00:00 2001 From: David Rose Date: Sat, 3 Aug 2002 00:35:25 +0000 Subject: [PATCH] returning reference to local variable --- panda/src/express/multifile.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panda/src/express/multifile.cxx b/panda/src/express/multifile.cxx index e898f8f7ab..fe74484007 100644 --- a/panda/src/express/multifile.cxx +++ b/panda/src/express/multifile.cxx @@ -695,7 +695,7 @@ extract_subfile_to(int index, ostream &out) { istream &Multifile:: open_read_subfile(int index) { #ifndef NDEBUG - ifstream empty_stream; + static ifstream empty_stream; nassertr(_open_subfile == (Subfile *)NULL, empty_stream); nassertr(is_read_valid(), empty_stream); nassertr(index >= 0 && index < (int)_subfiles.size(), empty_stream);