mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 14:54:29 +02:00
Fix GetAllMappingsRequest not storing mappings
This commit is contained in:
parent
cf9d4c256a
commit
a18486d97d
1 changed files with 1 additions and 2 deletions
|
@ -77,12 +77,11 @@ void GetAllMappingsRequest::start() {
|
||||||
if (!error) {
|
if (!error) {
|
||||||
size_t numberOfMappings;
|
size_t numberOfMappings;
|
||||||
message->readPrimitive(&numberOfMappings);
|
message->readPrimitive(&numberOfMappings);
|
||||||
AssetMapping mapping;
|
|
||||||
assetClient->_mappingCache.clear();
|
assetClient->_mappingCache.clear();
|
||||||
for (auto i = 0; i < numberOfMappings; ++i) {
|
for (auto i = 0; i < numberOfMappings; ++i) {
|
||||||
auto path = message->readString();
|
auto path = message->readString();
|
||||||
auto hash = message->readString();
|
auto hash = message->readString();
|
||||||
mapping[path] = hash;
|
_mappings[path] = hash;
|
||||||
assetClient->_mappingCache[path] = hash;
|
assetClient->_mappingCache[path] = hash;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue