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:
parent
7c861331af
commit
b6f5a19521
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue