mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 23:11:38 +00:00
Fix a segfault when merging rects.
This commit is contained in:
parent
d8d21b00f4
commit
695b38e5e5
1 changed files with 2 additions and 1 deletions
|
@ -240,6 +240,7 @@ VRect_Merge (const vrect_t *r1, const vrect_t *r2)
|
|||
if (t)
|
||||
u = VRect_Difference (t, r2);
|
||||
if (!u) {
|
||||
if (t)
|
||||
VRect_Delete (t);
|
||||
return merge;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue