Door* TileMap::GetDoor(const char* Name) const { if (!Name) { return NULL; } for (size_t i = 0; i < doors.size(); i++) { Door* door = doors[i]; if (stricmp( door->GetScriptName(), Name ) == 0) return door; } return NULL; }