returning reference to local variable

This commit is contained in:
David Rose 2002-08-03 00:35:25 +00:00
parent 3af195af1a
commit 2bebf011c3
1 changed files with 1 additions and 1 deletions

View File

@ -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);