1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-01-17 21:09:00 +01:00

fix playSound(SND_SECRET) crash for PSX levels

This commit is contained in:
XProger 2017-02-06 04:56:14 +03:00
parent 831e072943
commit 492cec1b79
2 changed files with 3 additions and 0 deletions

Binary file not shown.

View File

@ -195,6 +195,9 @@ struct Controller {
}
void playSound(int id, const vec3 &pos, int flags) const {
if (level->version == TR::Level::VER_TR1_PSX && id == TR::SND_SECRET)
return;
int16 a = level->soundsMap[id];
if (a == -1) return;