From 9e0813ec9b0f87fcf42f4a48b312e4ae8be94179 Mon Sep 17 00:00:00 2001 From: Jude Brown Date: Sat, 2 Jan 2010 00:13:03 +1000 Subject: Always initialise door offset (Napkin). Don't think there are any instances where this could be used uninitialised, but it's probably a bad idea not to set it to 0 when doing so would cause no harm. --- crawl-ref/source/tilepick.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crawl-ref/source/tilepick.cc b/crawl-ref/source/tilepick.cc index 1fd6c62790..5db510fd8d 100644 --- a/crawl-ref/source/tilepick.cc +++ b/crawl-ref/source/tilepick.cc @@ -3131,7 +3131,7 @@ int _get_door_offset (int base_tile, bool opened = false, return 0; // The location of the default "closed" tile. - int offset; + int offset = 0; switch (count) { -- cgit v1.2.3-54-g00ecf