Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 1a1f5ab

Browse filesBrowse files
Merge pull request #7588 from livecodepanos/bugfix-22087
[[ Bug 22087 ]] Prevent crash when setting the enabledTracks of player to empty
2 parents 1e56ae3 + d453d70 commit 1a1f5ab
Copy full SHA for 1a1f5ab

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎engine/src/player-platform.cpp

Copy file name to clipboardExpand all lines: engine/src/player-platform.cpp
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1877,7 +1877,7 @@ void MCPlayer::setenabledtracks(uindex_t p_count, uint32_t *p_tracks_id)
18771877
MCPlatformSetPlayerTrackProperty(m_platform_player, i, kMCPlatformPlayerTrackPropertyEnabled, kMCPlatformPropertyTypeBool, &t_enabled);
18781878
}
18791879

1880-
for (uindex_t i = 0; i < t_track_count; i++)
1880+
for (uindex_t i = 0; i < p_count; i++)
18811881
{
18821882
// If the list of enabledtracks we set contains 0 (empty), just skip it
18831883
if (p_tracks_id[i] == 0)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.