Fix crystal ball use after being destroyed

Crystal ball can be destroyed when used, so pass the object parameter
back as null in that case.
This commit is contained in:
Pasi Kallinen
2015-11-01 18:49:38 +02:00
parent 07e2d6175f
commit 9181f06dab
4 changed files with 8 additions and 7 deletions

View File

@@ -3486,7 +3486,7 @@ doapply()
res = use_towel(obj);
break;
case CRYSTAL_BALL:
use_crystal_ball(obj);
use_crystal_ball(&obj);
break;
case MAGIC_MARKER:
res = dowrite(obj);