+ fix Enumeration::contains: the current index is irrelevant when searching for an entry in the enumeration
+ only print a warning if the enumeration is not empty but the restored index is < 0
This commit is contained in:
@@ -220,7 +220,7 @@ bool Enumeration::contains(const char *value) const
|
||||
// using string methods without set, use setEnums(const char** plEnums) first!
|
||||
//assert(_EnumArray);
|
||||
|
||||
if (!isValid()) {
|
||||
if (!getEnums()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user