Skip to content

Commit 4a43e44

Browse files
committed
Fix bad cast
1 parent 1fa96a9 commit 4a43e44

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/hooks/CustomJSONDataHooks.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ static float GetAheadTime(Il2CppObject const* obj, float aheadTimeOriginal) {
385385
aheadTime = static_cast<CustomJSONData::CustomObstacleData const*>(obj)->aheadTimeNoodle;
386386
}
387387

388-
if (obj->klass == CustomObstacleKlass) {
388+
if (obj->klass == CustomSliderData) {
389389
aheadTime = static_cast<CustomJSONData::CustomSliderData const*>(obj)->aheadTimeNoodle;
390390
}
391391

0 commit comments

Comments
 (0)