1
0
Fork 0
mirror of https://codeberg.org/noisytoot/notnotdnethack.git synced 2025-04-15 04:50:44 +01:00

CRASH BUGFIX: Bad code in scorpion carapace props

We can get here with no obj
This commit is contained in:
chrisANG 2024-05-18 22:46:19 -04:00
parent 7c861331af
commit b6f5a19521

View file

@ -235,7 +235,7 @@ int otyp;
}
}
//From scorpion carapace
if(obj->oartifact == ART_SCORPION_CARAPACE){
if(obj && obj->oartifact == ART_SCORPION_CARAPACE){
switch(cur_prop){
case SWIMMING:
if(check_carapace_mod(obj, CPROP_SWIMMING))