Skip to content

Commit 5bfc71c

Browse files
authored
Do not assert SFX count as it's not fixed size
1 parent a563b65 commit 5bfc71c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Source/effects.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,6 @@ void LoadEffectsData()
147147
reader.readString("path", item.pszName);
148148
}
149149
sgSFX.shrink_to_fit();
150-
// We're not actually parsing the IDs yet, thus this sanity check here.
151-
assert(static_cast<size_t>(SfxID::LAST) + 1 == sgSFX.size());
152150
}
153151

154152
void PrivSoundInit(uint8_t bLoadMask)
@@ -313,3 +311,4 @@ int GetSFXLength(SfxID nSFX)
313311
}
314312

315313
} // namespace devilution
314+

0 commit comments

Comments
 (0)