bnoazx005 / TDEngine2

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

[Bug] CComponentManager::RemoveComponent works incorrectly #48

Closed bnoazx005 closed 4 years ago

bnoazx005 commented 4 years ago

Bug report

CComponentManager::RemoveComponent works incorrectly and removes component of another type than given one

Environment

Win 10 (x64) / Visual Studio 2017 / TDEngine2-v0.4 / NVidia GTX 860M in GL3.x mode

Steps to reproduce the issue

  1. Try to call CComponentManager::RemoveComponent for some entity and its component

What's the expected result?

CComponentManager::RemoveComponent should delete a component of given type if it exists on given entity

What's the actual result?

CComponentManager::RemoveComponent removes some other component of a given entity

bnoazx005 commented 4 years ago

Fixed in 6101069a43df4f2beeb282527b086ec358308217