Suppress address warning in en_s_goro (#1655)

* en_s_goro warning

* Format
This commit is contained in:
Derek Hensley 2024-07-02 13:11:11 -07:00 committed by GitHub
parent 6541532abb
commit 716cc0d63d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -895,8 +895,8 @@ void EnSGoro_UpdateCollider(EnSGoro* this, PlayState* play) {
this->collider.dim.height = height;
//! @bug: The check is useless. If &this->collider somehow was NULL the above code would have already dereferenced
//! it.
if (&this->collider != NULL) {
//! it. Cast to `intptr_t` to suppress address comparision to NULL warning.
if ((intptr_t)(&this->collider) != (intptr_t)NULL) {
CollisionCheck_SetOC(play, &play->colChkCtx, &this->collider.base);
}
}