Browse Source

Merge pull request #1238 from zejji/master

Modified Bundle::create to add new Bundle to cache
Sean Taylor 12 years ago
parent
commit
d7f1cfa2c7
1 changed files with 3 additions and 0 deletions
  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;
 }
 }