Merge pull request #342 from Lopuska/patch-1
pass proper effects slot number to AddActiveEffectSlots
This commit is contained in:
commit
6644a660e8
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user