Fixed crash in uv_update_scroll()

This commit is contained in:
MysterD 2023-05-07 16:01:41 -07:00
parent 8f938e25ca
commit ae76ad7c00
1 changed files with 1 additions and 0 deletions

View File

@ -136,6 +136,7 @@ static void shift_UV_SINE(u32 vtxIndex, u16 vertcount, s16 speed, u16 bhv, u16 c
* Behavior param = scroll target index
*/
void uv_update_scroll(void) {
if (!o) { return; }
s16 speed = (s16) o->oPosX;
u16 bhv = (u16) o->oPosY;
u16 vertCount = (u16) o->oPosZ;