mirror of
https://github.com/libsm64/libsm64.git
synced 2025-01-22 15:43:11 -05:00
Fix segfault with static surfaces
This commit is contained in:
parent
5f59e1a178
commit
fac3ef5f8b
1 changed files with 4 additions and 0 deletions
|
@ -127,6 +127,10 @@ static void engine_surface_from_lib_surface( struct Surface *surface, const stru
|
|||
|
||||
surface->object = (struct Object *)(transform);
|
||||
}
|
||||
else
|
||||
{
|
||||
surface->object = NULL;
|
||||
}
|
||||
|
||||
// (v2 - v1) x (v3 - v2)
|
||||
nx = (y2 - y1) * (z3 - z2) - (z2 - z1) * (y3 - y2);
|
||||
|
|
Loading…
Reference in a new issue