Преглед на файлове

Modified Bundle::create to add new Bundle to cache

Zejji преди 12 години
родител
ревизия
2580f3af9e
променени са 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->_references = refs;
     bundle->_stream = stream;
     bundle->_stream = stream;
 
 
+	// Add bundle to the cache.
+    __bundleCache.push_back(bundle);
+
     return bundle;
     return bundle;
 }
 }