Skip to content

Commit

Permalink
minor bugfixes as per electronicarts#81
Browse files Browse the repository at this point in the history
  • Loading branch information
ChthonVII committed Jun 23, 2021
1 parent 43e1595 commit df34288
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion REDALERT/CONQUER.CPP
Original file line number Diff line number Diff line change
Expand Up @@ -5594,7 +5594,8 @@ void Shake_The_Screen(int shakes, HousesType house)
*=============================================================================================*/
void List_Copy(short const * source, int len, short * dest)
{
if (dest == NULL || dest == NULL) {
// Chthon CFE Note: bugfix as per https://github.com/electronicarts/CnC_Remastered_Collection/pull/81
if (source == NULL || dest == NULL) {
return;
}

Expand Down
3 changes: 2 additions & 1 deletion TIBERIANDAWN/SOUNDDLG.CPP
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,8 @@ void SoundControlsClass::Process(void)
int length = Theme.Track_Length(index);
char const * fullname = Theme.Full_Name(index);

void * ptr = new char [sizeof(100)];
// Chthon CFE Note: bugfix as per https://github.com/electronicarts/CnC_Remastered_Collection/pull/81
void * ptr = new char [100];
if (ptr) {
sprintf((char *)ptr, "%cTrack %d\t%d:%02d\t%s", index, listbox.Count()+1, length / 60, length % 60, fullname);
listbox.Add_Item((char const *)ptr);
Expand Down

0 comments on commit df34288

Please sign in to comment.