Browse Source

Forgot to initialize some variables in private Resource constructor.

Thankfully catched in tests using gcc 4.6 (passed with 4.7).
pull/279/head
Vladimír Vondruš 14 years ago
parent
commit
871c2a4f90
  1. 2
      src/ResourceManager.h

2
src/ResourceManager.h

@ -324,7 +324,7 @@ template<class T, class U = T> class Resource {
}
private:
inline Resource(Implementation::ResourceManagerData<T>* manager, ResourceKey key): manager(manager), key(key), lastCheck(0) {
inline Resource(Implementation::ResourceManagerData<T>* manager, ResourceKey key): manager(manager), key(key), lastCheck(0), _state(ResourceState::NotLoaded), data(nullptr) {
manager->incrementReferenceCount(key);
}

Loading…
Cancel
Save