mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 17:35:08 +02:00
Merge branch 'master' of https://github.com/highfidelity/hifi
This commit is contained in:
commit
d430877c41
1 changed files with 5 additions and 0 deletions
|
@ -44,6 +44,11 @@ void Space::processResets(const Transaction::Resets& transactions) {
|
|||
for (auto& reset : transactions) {
|
||||
// Access the true item
|
||||
auto proxyID = std::get<0>(reset);
|
||||
|
||||
// Guard against proxyID being past the end of the list.
|
||||
if (proxyID < 0 || proxyID >= (int32_t)_proxies.size() || proxyID >= (int32_t)_owners.size()) {
|
||||
continue;
|
||||
}
|
||||
auto& item = _proxies[proxyID];
|
||||
|
||||
// Reset the item with a new payload
|
||||
|
|
Loading…
Reference in a new issue