mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
fix compilation errors
This commit is contained in:
@@ -45,7 +45,7 @@ SCRIPT_FUNCTION(get_mse_locale) {
|
||||
|
||||
SCRIPT_FUNCTION(get_mse_dark_mode) {
|
||||
SCRIPT_RETURN(settings.darkMode());
|
||||
}
|
||||
}
|
||||
|
||||
SCRIPT_FUNCTION(trace) {
|
||||
SCRIPT_PARAM_C(String, input);
|
||||
@@ -753,7 +753,7 @@ SCRIPT_FUNCTION(get_card_stylesheet) {
|
||||
SCRIPT_PARAM_C(ScriptValueP, set);
|
||||
ScriptObject<CardP>* c = dynamic_cast<ScriptObject<CardP>*>(input.get());
|
||||
ScriptObject<Set*>* s = dynamic_cast<ScriptObject<Set*>*>(set.get());
|
||||
if (s && c) {
|
||||
if (s && c) {
|
||||
return to_script(s->getValue()->stylesheetForP(c->getValue()));
|
||||
}
|
||||
throw ScriptError(_("invalid set or card argument"));
|
||||
|
||||
Reference in New Issue
Block a user