Re-fixed the special obj/player wrapper for scripts.

This commit is contained in:
Griatch 2014-04-09 15:31:18 +02:00
parent 37a1d86659
commit 7fd47eb386

View file

@ -128,9 +128,11 @@ class ScriptDB(TypedObject):
the db_player or db_obj field, using the same obj the db_player or db_obj field, using the same obj
property name property name
""" """
if self.db_player: obj = _GA(self, "db_player")
return _GA(self, "db_player") if not obj:
return _GA(self, "db_obj") obj = _GA(self, "db_obj")
if obj:
return obj.typeclass
def __set_obj(self, value): def __set_obj(self, value):
""" """