Make nil equivalent type to string and userdata
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
2fbe1fdf09
commit
01e5441d62
|
@ -42,6 +42,11 @@ namespace Porygon{
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual bool operator ==(const shared_ptr<const ScriptType>& b) const{
|
virtual bool operator ==(const shared_ptr<const ScriptType>& b) const{
|
||||||
|
if (_class == TypeClass::Nil){
|
||||||
|
auto bClass = b->_class;
|
||||||
|
if (bClass == TypeClass::UserData || bClass == TypeClass::String || bClass == TypeClass::All)
|
||||||
|
return true;
|
||||||
|
}
|
||||||
return _class == b->_class;
|
return _class == b->_class;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue