fixed mistake in outerspace check

This commit is contained in:
Dave Schuyler 2003-12-18 01:46:20 +00:00
parent 90e07b77d5
commit 50184a8796

View File

@ -88,10 +88,10 @@ handle_entries() {
bool got_max = false;
float max_height = 0.0f;
Entries::const_iterator ei;
if (ei != entries.end()) {
if (!entries.empty()) {
_outer_space = false;
}
Entries::const_iterator ei;
for (ei = entries.begin(); ei != entries.end(); ++ei) {
CollisionEntry *entry = (*ei);
nassertr(entry != (CollisionEntry *)NULL, false);