Skip to content

Commit

Permalink
MP: Fixed a memcopy src==dst error in patch mesh code
Browse files Browse the repository at this point in the history
Spotted by GCC
  • Loading branch information
ensiform committed Oct 26, 2020
1 parent 0326204 commit e283f39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codemp/rd-vanilla/tr_bsp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1323,7 +1323,7 @@ void R_MovePatchSurfacesToHunk(world_t &worldData) {
memcpy( hunkgrid->widthLodError, grid->widthLodError, grid->width * 4 );

hunkgrid->heightLodError = (float *)Hunk_Alloc( grid->height * 4, h_low );
memcpy( grid->heightLodError, grid->heightLodError, grid->height * 4 );
memcpy( hunkgrid->heightLodError, grid->heightLodError, grid->height * 4 );

R_FreeSurfaceGridMesh( grid );

Expand Down

0 comments on commit e283f39

Please sign in to comment.