Browse Source

items: add BUGFIX for PrintItemPower (#2241)

pull/5295/head
Robin 5 years ago committed by GitHub
parent
commit
da7ea7b593
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Source/items.cpp

2
Source/items.cpp

@ -4020,7 +4020,7 @@ void PrintItemPower(char plidx, ItemStruct *x)
#else #else
if (x->_iSplLvlAdd == 2) if (x->_iSplLvlAdd == 2)
strcpy(tempstr, "spells are increased 2 levels"); strcpy(tempstr, "spells are increased 2 levels");
if (x->_iSplLvlAdd < 1) if (x->_iSplLvlAdd < 1) // BUGFIX: should be `x->_iSplLvlAdd == -1`, not `x->_iSplLvlAdd < 1`.
#endif #endif
strcpy(tempstr, "spells are decreased 1 level"); strcpy(tempstr, "spells are decreased 1 level");
#ifdef HELLFIRE #ifdef HELLFIRE

Loading…
Cancel
Save