PRIVATE: use const string in getRandomPhoneClip
This commit is contained in:
parent
f99d4c0161
commit
692ab5c22b
2 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||
|
|
|
@ -271,7 +271,7 @@ public:
|
|||
SoundList _policeRadio;
|
||||
PhoneList _phone;
|
||||
|
||||
char *getRandomPhoneClip(char *, int, int);
|
||||
char *getRandomPhoneClip(const char *, int, int);
|
||||
void selectAMRadioArea(Common::Point);
|
||||
void selectPoliceRadioArea(Common::Point);
|
||||
void selectPhoneArea(Common::Point);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue