diff options
| author | totycro <totycro@unknown-horizons.org> | 2011-06-28 15:40:21 +0200 |
|---|---|---|
| committer | totycro <totycro@unknown-horizons.org> | 2011-06-28 15:40:21 +0200 |
| commit | 5099b8645dcbfe8914efe0844a68c4c41ae89ad6 (patch) | |
| tree | 15f6d965f4223aa5be4bb345d9e18f9c44459141 | |
| parent | 762a63e4dc581969e305d159451916240b95ca3f (diff) | |
| download | foop-5099b8645dcbfe8914efe0844a68c4c41ae89ad6.tar.gz foop-5099b8645dcbfe8914efe0844a68c4c41ae89ad6.tar.bz2 foop-5099b8645dcbfe8914efe0844a68c4c41ae89ad6.zip | |
Fixed assert
| -rw-r--r-- | pacman-c++/common/audio.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pacman-c++/common/audio.cpp b/pacman-c++/common/audio.cpp index fe259e2..3a98fbb 100644 --- a/pacman-c++/common/audio.cpp +++ b/pacman-c++/common/audio.cpp | |||
| @@ -165,7 +165,7 @@ void AudioManager::preload() | |||
| 165 | Q_ASSERT(sounds.count() > 0); | 165 | Q_ASSERT(sounds.count() > 0); |
| 166 | for(unsigned i = 1; i <= sounds.count(); ++i) | 166 | for(unsigned i = 1; i <= sounds.count(); ++i) |
| 167 | m_sounds.append(new QFile(QString(":/sound/sound%1").arg(i), this)); | 167 | m_sounds.append(new QFile(QString(":/sound/sound%1").arg(i), this)); |
| 168 | Q_ASSERT(m_sounds.count() != (sizeof(Sound::length) / sizeof(unsigned int))); | 168 | Q_ASSERT(m_sounds.count() == (sizeof(Sound::length) / sizeof(unsigned int))); |
| 169 | } | 169 | } |
| 170 | 170 | ||
| 171 | bool AudioManager::tryLoadAudioPlugin(const QString &libraryname) | 171 | bool AudioManager::tryLoadAudioPlugin(const QString &libraryname) |
