From 5041916fdd7602525dee800a94a07ca29fd41401 Mon Sep 17 00:00:00 2001 From: wrenczes Date: Wed, 4 May 2011 10:27:18 +0000 Subject: [PATCH] Fixed the psp build breakage in r3595. Erwan, pls review - I think that the subtypesToType map probably should be unsigned ints instead of signed, but I wasn't about to sweep through the file right now. --- projects/mtg/include/Subtypes.h | 2 +- projects/mtg/src/Subtypes.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/mtg/include/Subtypes.h b/projects/mtg/include/Subtypes.h index b217e0533..9f9c27190 100644 --- a/projects/mtg/include/Subtypes.h +++ b/projects/mtg/include/Subtypes.h @@ -42,7 +42,7 @@ public: int find(string subtype, bool forceAdd = true); string find(unsigned int id); bool isSubtypeOfType(string subtype, string type); - bool isSubtypeOfType(unsigned int subtype, unsigned int type); + bool isSubtypeOfType(int subtype, int type); bool isSuperType(int type); bool isType(int type); bool isSubType(int type); diff --git a/projects/mtg/src/Subtypes.cpp b/projects/mtg/src/Subtypes.cpp index 815d0aef6..5282ffdb2 100644 --- a/projects/mtg/src/Subtypes.cpp +++ b/projects/mtg/src/Subtypes.cpp @@ -62,7 +62,7 @@ bool Subtypes::isSubtypeOfType(string subtype, string type) unsigned int typeInt = find(type); return isSubtypeOfType(subtypeInt, typeInt); } -bool Subtypes::isSubtypeOfType(unsigned int subtype, unsigned int type) +bool Subtypes::isSubtypeOfType(int subtype, int type) { return (subtypesToType[subtype] == type); }