mirror of
https://github.com/overte-org/overte.git
synced 2025-07-16 00:56:48 +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) {
|
for (auto& reset : transactions) {
|
||||||
// Access the true item
|
// Access the true item
|
||||||
auto proxyID = std::get<0>(reset);
|
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];
|
auto& item = _proxies[proxyID];
|
||||||
|
|
||||||
// Reset the item with a new payload
|
// Reset the item with a new payload
|
||||||
|
|
Loading…
Reference in a new issue