mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
Use toSomeType() instead of operator SomeType in ScriptValue.
This means that we are more explicit about type conversions. Also use override specifiers for overriden virtual functions in ScriptValue.
This commit is contained in:
@@ -253,7 +253,7 @@ size_t DropDownChoiceList::selection() const {
|
||||
return 0;
|
||||
} else {
|
||||
// run default script to find out what the default choice would be
|
||||
String default_choice = *field().default_script.invoke( cve.viewer.getContext() );
|
||||
String default_choice = field().default_script.invoke( cve.viewer.getContext() )->toString();
|
||||
default_id = group->choiceId(default_choice);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user