diff NPC.h @ 1113:39eaa6b00141

something to bool cast (performance warning) mostly fixed
author Grumpy7
date Tue, 28 May 2013 00:19:45 +0200
parents 1ff57450f090
children ab6560001f5b
line wrap: on
line diff
--- a/NPC.h	Mon May 27 23:29:39 2013 +0200
+++ b/NPC.h	Tue May 28 00:19:45 2013 +0200
@@ -77,7 +77,7 @@
 #pragma pack(push, 1)
 struct NPCData  //4Ch
 {
-  inline bool Hired() {return uFlags & 0x80;}
+  inline bool Hired() {return (uFlags & 0x80) != 0;}
 
   char *pName;  //0
   unsigned int uPortraitID;  //4