openbsd-ports/games/ivan/patches/patch-Main_Include_human_h

13 lines
651 B
Plaintext

$OpenBSD: patch-Main_Include_human_h,v 1.1 2010/06/07 14:48:32 espie Exp $
--- Main/Include/human.h.orig Mon Jun 7 16:41:36 2010
+++ Main/Include/human.h Mon Jun 7 16:41:42 2010
@@ -130,7 +130,7 @@ CHARACTER(humanoid, character)
virtual truth CheckIfEquipmentIsNotUsable(int) const;
virtual void AddSpecialStethoscopeInfo(felist&) const;
virtual item* GetPairEquipment(int) const;
- virtual truth HasHead() const { return truth(GetHead()); }
+ virtual truth HasHead() const { return truth(GetHead() != NULL); }
virtual const festring& GetStandVerb() const;
virtual head* Behead();
virtual void AddAttributeInfo(festring&) const;