Skip to content

Commit

Permalink
Fix bug in multiple-ecology-file-detection code
Browse files Browse the repository at this point in the history
  • Loading branch information
Noah Gibbs committed Oct 21, 2011
1 parent 761e4fb commit 9f92cc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ecology.rb
Expand Up @@ -40,7 +40,7 @@ def read(ecology_pathname = nil)
}

if @ecology_initialized
if ecology_path != @ecology_path
if ecology_path != nil && ecology_path != @ecology_path
raise "You've tried to load both #{ecology_path || "nothing"} and " +
"#{@ecology_path || "nothing"} as ecology files since last reset!"
end
Expand Down

0 comments on commit 9f92cc6

Please sign in to comment.