Selaa lähdekoodia

Modified Bundle::create to add new Bundle to cache

Zejji 12 vuotta sitten
vanhempi
sitoutus
2580f3af9e
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  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;
 }