Added sanity check in getReplayPairViewerData
This commit is contained in:
parent
e23bd3e559
commit
33f6db24ae
@ -53,6 +53,10 @@ class ScoreService(
|
|||||||
val replay1 = getReplayViewerData(replay1Id) ?: return null
|
val replay1 = getReplayViewerData(replay1Id) ?: return null
|
||||||
val replay2 = getReplayViewerData(replay2Id) ?: return null
|
val replay2 = getReplayViewerData(replay2Id) ?: return null
|
||||||
|
|
||||||
|
if(replay1.beatmap != replay2.beatmap) {
|
||||||
|
return null
|
||||||
|
}
|
||||||
|
|
||||||
return ReplayPairViewerData(
|
return ReplayPairViewerData(
|
||||||
beatmap = replay1.beatmap,
|
beatmap = replay1.beatmap,
|
||||||
replay1 = replay1.replay,
|
replay1 = replay1.replay,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user