From 79e4065579fffcee219f00f5f79a883f96cd3a05 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Fri, 31 Jul 2009 16:50:48 +0000 Subject: [PATCH] Add default values for the optional parameters of \move, fixing an assertion failure when they are not specified. Originally committed to SVN as r3336. --- aegisub/src/ass_override.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aegisub/src/ass_override.cpp b/aegisub/src/ass_override.cpp index 72237eeca..6ab703827 100644 --- a/aegisub/src/ass_override.cpp +++ b/aegisub/src/ass_override.cpp @@ -302,7 +302,9 @@ void AssOverrideTagProto::LoadProtos () { proto.back().params.push_back(AssOverrideParamProto(VARDATA_FLOAT,NOT_OPTIONAL,PARCLASS_ABSOLUTE_POS_X)); proto.back().params.push_back(AssOverrideParamProto(VARDATA_FLOAT,NOT_OPTIONAL,PARCLASS_ABSOLUTE_POS_Y)); proto.back().params.push_back(AssOverrideParamProto(VARDATA_INT,OPTIONAL_6,PARCLASS_RELATIVE_TIME_START)); + proto.back().params.back().defaultValue.SetInt(0); proto.back().params.push_back(AssOverrideParamProto(VARDATA_INT,OPTIONAL_6,PARCLASS_RELATIVE_TIME_START)); + proto.back().params.back().defaultValue.SetInt(0); // \clip(,,,) proto.push_back(AssOverrideTagProto());