You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -1660,7 +1661,7 @@ void ai_add_goal_ship_internal( ai_info *aip, int goal_type, char *name, int /*
1660
1661
Assertion(strcmp(name, Ships[aip->shipnum].ship_name) != 0, "The goals apply to the actor in ai_add_goal_ship_internal for ship %s, please report to the SCP!", name);
@@ -4044,10 +4050,10 @@ int check_sexp_syntax(int node, int desired_return_type, int recursive, int *bad
4044
4050
}
4045
4051
4046
4052
case OPF_CONTAINER_VALUE:
4047
-
Assertion(p_container,
4048
-
"Attempt to check value arg for null container for SEXP operator %d at arg %d. Please report!",
4049
-
op_const,
4050
-
argnum);
4053
+
if (!p_container) {
4054
+
Warning(LOCATION, "Attempt to check value arg for null container for SEXP operator %s at arg %d. Please report!", Operators[op_index].text.c_str(), argnum);
4055
+
return SEXP_CHECK_TYPE_MISMATCH;
4056
+
}
4051
4057
z = check_container_value_data_type(op_const,
4052
4058
argnum,
4053
4059
p_container->type,
@@ -4063,9 +4069,10 @@ int check_sexp_syntax(int node, int desired_return_type, int recursive, int *bad
4063
4069
if (node_subtype == SEXP_ATOM_CONTAINER_NAME) {
4064
4070
// only list containers of strings or map containers with string keys are allowed
4065
4071
const auto *p_str_container = get_sexp_container(Sexp_nodes[node].text);
4066
-
Assertion(p_str_container,
4067
-
"Attempt to use unknown container %s. Please report!",
4068
-
Sexp_nodes[node].text);
4072
+
if (!p_str_container) {
4073
+
Warning(LOCATION, "Attempt to use unknown container %s. Please report!", Sexp_nodes[node].text);
4074
+
return SEXP_CHECK_TYPE_MISMATCH;
4075
+
}
4069
4076
4070
4077
const auto &str_container = *p_str_container;
4071
4078
if (str_container.is_list() && none(str_container.type & ContainerType::STRING_DATA)) {
0 commit comments