Skip to content

Commit 4d8bdee

Browse files
committed
Use fields for minor performance boost
1 parent 17a9d10 commit 4d8bdee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Hooks/ObstacleController.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@ MAKE_HOOK_MATCH(ObstacleController_Init, &ObstacleController::Init, void, Obstac
186186
noteOffset.z = 0;
187187
ad.noteOffset = noteOffset;
188188

189-
self->_stretchableObstacle->SetAllProperties(self->width * 0.98f, self->height, self->length,
190-
self->_stretchableObstacle->_obstacleFrame->color, self->_audioTimeSyncController->songTime);
189+
self->_stretchableObstacle->SetAllProperties(self->_width * 0.98f, self->_height, self->_length,
190+
self->_color, self->_audioTimeSyncController->songTime);
191191
self->_bounds = self->_stretchableObstacle->bounds;
192192
setBounds();
193193

0 commit comments

Comments
 (0)