fix(script_error): error type
This commit is contained in:
parent
5b069d4c16
commit
f099c95975
@ -104,7 +104,7 @@ namespace gsc
|
||||
void compile_error_stub(const char* code_pos, [[maybe_unused]] const char* msg)
|
||||
{
|
||||
get_unknown_function_error(code_pos);
|
||||
game::native::Com_Error(game::native::ERR_DROP, "script link error\n%s", unknown_function_error.data());
|
||||
game::native::Com_Error(game::native::ERR_SCRIPT_DROP, "script link error\n%s", unknown_function_error.data());
|
||||
}
|
||||
|
||||
unsigned int find_variable_stub(unsigned int parent_id, unsigned int thread_name)
|
||||
@ -113,7 +113,7 @@ namespace gsc
|
||||
if (!res)
|
||||
{
|
||||
get_unknown_function_error(thread_name);
|
||||
game::native::Com_Error(game::native::ERR_DROP, "script link error\n%s", unknown_function_error.data());
|
||||
game::native::Com_Error(game::native::ERR_SCRIPT_DROP, "script link error\n%s", unknown_function_error.data());
|
||||
}
|
||||
|
||||
return res;
|
||||
|
Loading…
Reference in New Issue
Block a user