1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-22 09:27:40 +00:00

Merge pull request #42 from Quuxplusone/forwhich

Fix an apparent typo-bug in "inventory.cpp"
This commit is contained in:
Zeno Rogue
2018-06-26 00:51:55 +02:00
committed by GitHub

View File

@@ -179,7 +179,7 @@ namespace hr { namespace inv {
int qtl = items[forwhich]; int qtl = items[forwhich];
while(qtl > 0) qtl >>= 1, remaining[itOrbMirror]++; while(qtl > 0) qtl >>= 1, remaining[itOrbMirror]++;
if(whichorbinfo == itOrbMirror) if(whichorbinfo == itOrbMirror)
extra += extraline(forwhich, its(nextp2(items[which]))); extra += extraline(forwhich, its(nextp2(items[forwhich])));
} }
vector<eItem> offensiveOrbs = { vector<eItem> offensiveOrbs = {
@@ -646,5 +646,3 @@ namespace hr { namespace inv {
} }
}} }}