PRIVATE: use const string in getRandomPhoneClip

This commit is contained in:
neuromancer 2021-02-16 11:52:02 -03:00 committed by Eugene Sandulenko
parent f99d4c0161
commit 692ab5c22b
2 changed files with 2 additions and 2 deletions

View file

@ -1005,7 +1005,7 @@ Common::String PrivateEngine::getLeaveSound() {
return Common::String::format("%sleft%d.wav", _globalAudioPath.c_str(), r);
}
char *PrivateEngine::getRandomPhoneClip(char *clip, int i, int j) {
char *PrivateEngine::getRandomPhoneClip(const char *clip, int i, int j) {
uint r = i + _rnd->getRandomNumber(j - i);
char *f = (char *)malloc((strlen(clip) + 3) * sizeof(char));