diff options
author | Kent Mein <mein@cs.umn.edu> | 2004-10-26 17:04:27 +0400 |
---|---|---|
committer | Kent Mein <mein@cs.umn.edu> | 2004-10-26 17:04:27 +0400 |
commit | 06cb471269c59ea36443f033f6308eadb500a720 (patch) | |
tree | 2f01b65410d80a7bf261ea47610096489d0dd012 /source/gameengine/GamePlayer/common | |
parent | 15e1671ec5648edcda2d4c77274521372a87d0ea (diff) |
Fix so it compiles on my machine....
Changed:
row_pointers = new (png_bytep) [(GetHeight() * sizeof(png_bytep))];
to:
row_pointers = new png_bytep [(GetHeight() * sizeof(png_bytep))];
Thanks emil....
Kent
Diffstat (limited to 'source/gameengine/GamePlayer/common')
-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; |