diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/gameengine/GamePlayer/common/GPC_Canvas.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/gameengine/GamePlayer/common/GPC_Canvas.cpp b/source/gameengine/GamePlayer/common/GPC_Canvas.cpp index 7648e6a5245..506b2fc423c 100644 --- a/source/gameengine/GamePlayer/common/GPC_Canvas.cpp +++ b/source/gameengine/GamePlayer/common/GPC_Canvas.cpp @@ -460,7 +460,7 @@ MakeScreenShot( png_write_info(png_ptr, info_ptr); // allocate memory for an array of row-pointers - row_pointers = new (png_bytep) [(GetHeight() * sizeof(png_bytep))]; + row_pointers = new png_bytep [(GetHeight() * sizeof(png_bytep))]; if (!row_pointers) { std::cout << "Cannot allocate row-pointers array" << std::endl; |