File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -283,7 +283,7 @@ CSoundPlayer::CSoundCollection::~CSoundCollection()
283
283
delete_data (m_sounds);
284
284
}
285
285
286
- const ref_sound& CSoundPlayer::CSoundCollection::random (const u32& id)
286
+ const ref_sound& CSoundPlayer::CSoundCollection::random (u32 id)
287
287
{
288
288
VERIFY (!m_sounds.empty ());
289
289
@@ -307,5 +307,5 @@ const ref_sound& CSoundPlayer::CSoundCollection::random(const u32& id)
307
307
} while (result == m_last_sound_id);
308
308
309
309
m_last_sound_id = result;
310
- return ( *m_sounds[result]) ;
310
+ return *m_sounds[result];
311
311
}
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ class CSoundPlayer : public CRandom32
60
60
CSoundCollection (const CSoundCollectionParams& params);
61
61
~CSoundCollection ();
62
62
IC ref_sound* add (ESoundTypes type, LPCSTR name) const ;
63
- const ref_sound& random (const u32& id);
63
+ const ref_sound& random (u32 id);
64
64
};
65
65
66
66
struct CSoundSingle : public CSoundParams
You can’t perform that action at this time.
0 commit comments