- Fix case sensitivity issue for some card sounds

- added null checks for "shadow" textures
This commit is contained in:
wagic.the.homebrew
2011-12-12 13:10:33 +00:00
parent db664e2836
commit 54a2f949b7
2 changed files with 16 additions and 6 deletions
+1
View File
@@ -1056,6 +1056,7 @@ JSample * MTGCardInstance::getSample()
if(!types.size())
return NULL;
type = Subtypes::subtypesList->find(types[0]);
std::transform(type.begin(), type.end(), type.begin(), ::tolower);
type.append(".wav");
js = WResourceManager::Instance()->RetrieveSample(type);
if (js)