bnoazx005 / TDEngine2

TDEngine2 is a cross-platform game engine
Apache License 2.0
18 stars 4 forks source link

[Bug] Resource manager returns incorrect resource handle for already created ones #53

Closed bnoazx005 closed 4 years ago

bnoazx005 commented 4 years ago

Bug report

IResourceHandler returned from CResourceManager::Create points onto invalid resource.

Environment

Win 10 (x64) / Visual Studio 2017 / TDEngine2-v0.4

Steps to reproduce the issue

  1. Load or create some resource.
  2. Do it again.
  3. Try to get a raw pointer onto a resource.

What's the expected result?

IResourceHandler should return correct handle onto requested resource.

What's the actual result?

IResourceHandler returned from CResourceManager::Create points onto invalid resource.

bnoazx005 commented 4 years ago

Fixed in b5784f10efe5ded2b5937d104a7158232950d5a8