summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilepick.cc
diff options
context:
space:
mode:
authorJude Brown <bookofjude@users.sourceforge.net>2010-01-02 00:13:03 +1000
committerJude Brown <bookofjude@users.sourceforge.net>2010-01-02 00:13:03 +1000
commit9e0813ec9b0f87fcf42f4a48b312e4ae8be94179 (patch)
treece0d4aa647e4a69ddf2317248e67bc851e49d61f /crawl-ref/source/tilepick.cc
parent3e5df64c7662c599ea2e3a9d42c8b8de71790c92 (diff)
downloadcrawl-ref-9e0813ec9b0f87fcf42f4a48b312e4ae8be94179.tar.gz
crawl-ref-9e0813ec9b0f87fcf42f4a48b312e4ae8be94179.zip
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.
Diffstat (limited to 'crawl-ref/source/tilepick.cc')
-rw-r--r--crawl-ref/source/tilepick.cc2
1 files changed, 1 insertions, 1 deletions
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)
{