Prevent attempt to dereference None player in QuestAdvance.py.

git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@21518 282e977c-c81d-0410-88c4-b93c2d0d6712
master
silvernexus 2020-10-20 18:14:35 +00:00
parent d01ba7fa68
commit d0debad84d
2 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,6 @@
2020-10-20 Daniel Hawkins
* scorn/houses/tannery: Fix flagstone tile in entrance area that doesn't prevent casting.
* maps/python/quests/QuestAdvance.py: Bail when no player is provided. Avoids a core dump from the attempt to run the script in some scenarios.
2020-10-12 Daniel Hawkins
* pup_land/begin/adv: Utilize the randomized item generation for the creator arch rather than separate

View File

@ -47,6 +47,9 @@ def handle():
if who.Level > skill.Level + 5:
return
# If no player, return.
if player is None:
return
# if a spell was used, then the killer is the spell object, find the owner
if player.Type != Crossfire.Type.PLAYER:
player = player.Owner