From e22f0de5a4d9e0b7463f104144095eb4bb51984a Mon Sep 17 00:00:00 2001 From: Adam Borowski Date: Tue, 12 Jan 2010 11:44:06 +0100 Subject: Die noisily on invalid box_side (mostly to silence compiler warnings). --- crawl-ref/source/l_dgnbld.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'crawl-ref/source/l_dgnbld.cc') diff --git a/crawl-ref/source/l_dgnbld.cc b/crawl-ref/source/l_dgnbld.cc index 7e66d13a03..bf05095d69 100644 --- a/crawl-ref/source/l_dgnbld.cc +++ b/crawl-ref/source/l_dgnbld.cc @@ -168,6 +168,7 @@ std::vector _box_side (int x1, int y1, int x2, int y2, int side) case 1: start_x = x2; start_y = y1; stop_x = x2; stop_y = y2; break; case 2: start_x = x1; start_y = y2; stop_x = x2; stop_y = y2; break; case 3: start_x = x1; start_y = y1; stop_x = x1; stop_y = y2; break; + default: ASSERT(!"invalid _box_side"); return (line); } x = start_x; y = start_y; -- cgit v1.2.3-54-g00ecf