issue #82: debug ,

This commit is contained in:
Walzer 2010-08-26 01:42:20 +00:00
parent fab3c76c10
commit e7fc567b94
1 changed files with 1 additions and 1 deletions

View File

@ -385,7 +385,7 @@ namespace cocos2d {
inline const char * valueForKey(const char *key, std::map<std::string, void*> *dict)
{
std::map<std::string, void*>::iterator it = dict->find(key);
return ((std::string*)(it->second))->c_str();
return it!=dict->end() ? ((std::string*)(it->second))->c_str() : "";
}
};