Merge branch '3.7-beta-cpp' of https://github.com/esotericsoftware/spine-runtimes into 3.7-beta-cpp

This commit is contained in:
badlogic 2018-09-25 16:00:18 +02:00
commit 7f551c90e6

View File

@ -48,14 +48,14 @@ const std::string &RTTI::getClassName() const {
}
bool RTTI::isExactly(const RTTI &rtti) const {
return (this == &rtti);
return (this->_className == rtti._className);
}
bool RTTI::instanceOf(const RTTI &rtti) const {
const RTTI *pCompare = this;
while (pCompare) {
if (pCompare == &rtti) {
if (pCompare->_className == rtti._className) {
return true;
}
@ -63,4 +63,4 @@ bool RTTI::instanceOf(const RTTI &rtti) const {
}
return false;
}
}