diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-11-18 20:08:30 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-11-18 20:08:30 +0000 |
commit | 82cc08db3375be0e6ab3b871f7dde5916ed67c30 (patch) | |
tree | a91223523f18f1a1a1be08368d4bdc2d4981cf91 /crawl-ref/source/dungeon.cc | |
parent | a06523dd0f46c2536e070e58c9288419bbcbf22e (diff) | |
download | crawl-ref-82cc08db3375be0e6ab3b871f7dde5916ed67c30.tar.gz crawl-ref-82cc08db3375be0e6ab3b871f7dde5916ed67c30.zip |
Fix off-by-one error in StairConnectivity access (player_branch_depth() is 1-based).
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7478 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/dungeon.cc')
-rw-r--r-- | crawl-ref/source/dungeon.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/dungeon.cc b/crawl-ref/source/dungeon.cc index b3e0da01d6..7869655cd8 100644 --- a/crawl-ref/source/dungeon.cc +++ b/crawl-ref/source/dungeon.cc @@ -8102,9 +8102,9 @@ static bool _fixup_interlevel_connectivity() StairConnectivity full; StairConnectivity &prev_con = (player_branch_depth() == 1) ? full : - (connectivity[your_branch().id][player_branch_depth() - 1]); + (connectivity[your_branch().id][player_branch_depth() - 2]); StairConnectivity &this_con = - (connectivity[your_branch().id][player_branch_depth()]); + (connectivity[your_branch().id][player_branch_depth() - 1]); FixedVector<coord_def, 3> up_gc; FixedVector<coord_def, 3> down_gc; |