Fixed "Werror" related compilation problems on Linux and Meego.

This commit is contained in:
Xawotihs
2011-08-14 18:09:02 +00:00
parent 8f1e97f8f9
commit c188b4d104
20 changed files with 22 additions and 51 deletions
+1 -2
View File
@@ -124,7 +124,7 @@ int AbilityFactory::parseCastRestrictions(MTGCardInstance * card,Player * player
}
size_t typeRelated = restriction[i].find("type(");
size_t check = NULL;
size_t check = 0;
if(typeRelated != string::npos)
{
int firstAmount = 0;
@@ -142,7 +142,6 @@ int AbilityFactory::parseCastRestrictions(MTGCardInstance * card,Player * player
check = comparasion[i].find("type(");
if( check != string::npos)
{
size_t start = 0;
size_t end = 0;
size_t found = comparasion[i].find("type(");
if (found != string::npos)