diff options
author | Jude Brown <bookofjude@users.sourceforge.net> | 2010-01-02 00:13:03 +1000 |
---|---|---|
committer | Jude Brown <bookofjude@users.sourceforge.net> | 2010-01-02 00:13:03 +1000 |
commit | 9e0813ec9b0f87fcf42f4a48b312e4ae8be94179 (patch) | |
tree | ce0d4aa647e4a69ddf2317248e67bc851e49d61f /crawl-ref/source/tilepick.cc | |
parent | 3e5df64c7662c599ea2e3a9d42c8b8de71790c92 (diff) | |
download | crawl-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.cc | 2 |
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) { |