mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-09 16:48:43 +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 {
|
||||
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;
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user