Fix compare operator
parent
fdc7a36ded
commit
012fce9f17
|
@ -344,7 +344,7 @@ struct aiString {
|
||||||
/** Comparison operator */
|
/** Comparison operator */
|
||||||
bool operator==(const aiString &other) const {
|
bool operator==(const aiString &other) const {
|
||||||
if (length == other.length) {
|
if (length == other.length) {
|
||||||
return memcmp(data, other.data, length);
|
return memcmp(data, other.data, length) == 0;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue