fix crash with multiple GSG's

This commit is contained in:
David Rose 2005-09-29 21:28:39 +00:00
parent 26f187350d
commit be0edea190

View File

@ -488,7 +488,7 @@ get_geom_munger(const RenderState *state) {
// the only GSG in the world anyway.
if (!state->_mungers.empty()) {
RenderState::Mungers::const_iterator mi = state->_last_mi;
if ((*mi).first == this && !(*mi).first.was_deleted()) {
if (!(*mi).first.was_deleted() && (*mi).first == this) {
return (*mi).second;
}
}