diff Items.h @ 1113:39eaa6b00141

something to bool cast (performance warning) mostly fixed
author Grumpy7
date Tue, 28 May 2013 00:19:45 +0200
parents 7033eb155558
children 0dbf6c4dd029
line wrap: on
line diff
--- a/Items.h	Mon May 27 23:29:39 2013 +0200
+++ b/Items.h	Tue May 28 00:19:45 2013 +0200
@@ -145,10 +145,10 @@
  //   Reset();
  // }
 
-  inline bool Broken()        {return uAttributes & ITEM_BROKEN;}
-  inline bool Identified()    {return uAttributes & ITEM_IDENTIFIED;}
+  inline bool Broken()        {return (uAttributes & ITEM_BROKEN) != 0;}
+  inline bool Identified()    {return (uAttributes & ITEM_IDENTIFIED) != 0;}
   inline void SetIdentified() {uAttributes |= ITEM_IDENTIFIED;}
-  inline bool Stolen()        {return uAttributes & ITEM_STOLEN;}
+  inline bool Stolen()        {return (uAttributes & ITEM_STOLEN) != 0;}
   inline void SetStolen()     {uAttributes |= ITEM_STOLEN;}
 
   bool GenerateArtifact();