summaryrefslogtreecommitdiffstats
path: root/servers/audio/audio_stream.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-05-08 14:35:44 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-05-08 14:35:44 +0200
commita9a1d0a162ef6be57374519589c538205e65a7fc (patch)
tree1789441c8af84b396ca21892c332c0583abb9c48 /servers/audio/audio_stream.cpp
parent1d101329c96460a8b00a8dec5ff8808a589ee505 (diff)
parenta0dbdcc3abbd3e6307c6e68d0e60f8c0fa31d576 (diff)
downloadredot-engine-a9a1d0a162ef6be57374519589c538205e65a7fc.tar.gz
Merge pull request #91619 from AThousandShips/find_improve
Replace `find` with `contains/has` where applicable
Diffstat (limited to 'servers/audio/audio_stream.cpp')
-rw-r--r--servers/audio/audio_stream.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/audio/audio_stream.cpp b/servers/audio/audio_stream.cpp
index b5333d91c6..051ed59632 100644
--- a/servers/audio/audio_stream.cpp
+++ b/servers/audio/audio_stream.cpp
@@ -618,7 +618,7 @@ Ref<AudioStreamPlayback> AudioStreamRandomizer::instance_playback_sequential() {
if (entry.stream.is_null()) {
continue;
}
- if (local_pool.find(entry.stream) != -1) {
+ if (local_pool.has(entry.stream)) {
WARN_PRINT("Duplicate stream in sequential playback pool");
continue;
}