1
0
Fork 0
mirror of https://codeberg.org/noisytoot/notnotdnethack.git synced 2025-05-11 09:45:09 +01:00

MAJOR BUGFIX: remove infinite loop.

Oops
This commit is contained in:
chris 2024-04-28 12:28:39 -04:00
parent ea6476aef7
commit c05ff1591f

View file

@ -3239,7 +3239,7 @@ struct obj *
cursed_unchanger()
{
struct obj *otmp;
for(otmp = invent; otmp; otmp->nobj){
for(otmp = invent; otmp; otmp = otmp->nobj){
if(otmp->owornmask && item_has_property(otmp, UNCHANGING) && otmp->cursed)
return otmp;
}