Merge pull request #342 from Lopuska/patch-1

pass proper effects slot number to AddActiveEffectSlots
This commit is contained in:
kcat
2019-09-14 18:29:48 -07:00
committed by GitHub
+3 -2
View File
@@ -280,7 +280,8 @@ START_API_FUNC
else
{
al::vector<ALuint> ids;
ids.reserve(static_cast<ALuint>(n));
ALsizei count{n};
ids.reserve(static_cast<ALuint>(count));
do {
ALeffectslot *slot{AllocEffectSlot(context.get())};
if(!slot)
@@ -290,7 +291,7 @@ START_API_FUNC
return;
}
ids.emplace_back(slot->id);
} while(--n);
} while(--count);
std::copy(ids.cbegin(), ids.cend(), effectslots);
}