Просмотр исходного кода

Merge pull request #1238 from zejji/master

Modified Bundle::create to add new Bundle to cache
Sean Taylor 12 лет назад
Родитель
Сommit
d7f1cfa2c7
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      gameplay/src/Bundle.cpp

+ 3 - 0
gameplay/src/Bundle.cpp

@@ -233,6 +233,9 @@ Bundle* Bundle::create(const char* path)
     bundle->_references = refs;
     bundle->_stream = stream;
 
+	// Add bundle to the cache.
+    __bundleCache.push_back(bundle);
+
     return bundle;
 }