Fix missing switch cases

This commit is contained in:
Anders Jenbo 2021-09-22 05:27:02 +02:00 committed by qndel
commit 4f791948ff
2 changed files with 7 additions and 0 deletions

View file

@ -4645,6 +4645,8 @@ void SpawnBoy(int lvl)
ivalue = mostValuablePlayerItem == nullptr ? 0 : mostValuablePlayerItem->_iIvalue;
break;
}
default:
app_fatal("Invalid item spawn");
}
ivalue = ivalue * 4 / 5; // avoids forced int > float > int conversion