Fix GetAllMappingsRequest not storing mappings

This commit is contained in:
Ryan Huffman 2016-03-08 10:11:37 -08:00
parent cf9d4c256a
commit a18486d97d

View file

@ -77,12 +77,11 @@ void GetAllMappingsRequest::start() {
if (!error) {
size_t numberOfMappings;
message->readPrimitive(&numberOfMappings);
AssetMapping mapping;
assetClient->_mappingCache.clear();
for (auto i = 0; i < numberOfMappings; ++i) {
auto path = message->readString();
auto hash = message->readString();
mapping[path] = hash;
_mappings[path] = hash;
assetClient->_mappingCache[path] = hash;
}
}