mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
Merge branch '3.7-beta-cpp' of https://github.com/esotericsoftware/spine-runtimes into 3.7-beta-cpp
This commit is contained in:
commit
7f551c90e6
@ -48,14 +48,14 @@ const std::string &RTTI::getClassName() const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool RTTI::isExactly(const RTTI &rtti) const {
|
bool RTTI::isExactly(const RTTI &rtti) const {
|
||||||
return (this == &rtti);
|
return (this->_className == rtti._className);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool RTTI::instanceOf(const RTTI &rtti) const {
|
bool RTTI::instanceOf(const RTTI &rtti) const {
|
||||||
const RTTI *pCompare = this;
|
const RTTI *pCompare = this;
|
||||||
|
|
||||||
while (pCompare) {
|
while (pCompare) {
|
||||||
if (pCompare == &rtti) {
|
if (pCompare->_className == rtti._className) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user