From bef7f8e27084500451c7f220089ae5ea019df542 Mon Sep 17 00:00:00 2001 From: David Rose Date: Mon, 6 Dec 2004 20:31:33 +0000 Subject: [PATCH] compile on MSVC7 --- panda/src/display/graphicsOutput.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/panda/src/display/graphicsOutput.cxx b/panda/src/display/graphicsOutput.cxx index 3de1b7febf..eb12500a61 100644 --- a/panda/src/display/graphicsOutput.cxx +++ b/panda/src/display/graphicsOutput.cxx @@ -216,9 +216,9 @@ remove_display_region(DisplayRegion *display_region) { nassertr(display_region != _default_display_region, false); + PT(DisplayRegion) drp = display_region; TotalDisplayRegions::iterator dri = - find(_total_display_regions.begin(), _total_display_regions.end(), - display_region); + find(_total_display_regions.begin(), _total_display_regions.end(), drp); if (dri != _total_display_regions.end()) { display_region->_window = NULL; _total_display_regions.erase(dri);