mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-20 10:43:29 +00:00
[ruamoko] Return nil IMP for nil method
Fixes a segfault.
This commit is contained in:
parent
6e74f2a03f
commit
6e473dc8f2
1 changed files with 1 additions and 1 deletions
|
@ -1800,7 +1800,7 @@ rua_method_get_imp (progs_t *pr)
|
|||
{
|
||||
pr_method_t *method = &P_STRUCT (pr, pr_method_t, 0);
|
||||
|
||||
R_INT (pr) = method->method_imp;
|
||||
R_INT (pr) = method ? method->method_imp : 0;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue