diff --git a/source/glest_game/graphics/renderer.cpp b/source/glest_game/graphics/renderer.cpp index 62772e18..e04ee0f6 100644 --- a/source/glest_game/graphics/renderer.cpp +++ b/source/glest_game/graphics/renderer.cpp @@ -4258,7 +4258,7 @@ void Renderer::renderSurface(const int renderFps) { int lastTex=-1; //int currTex=-1; - Quad2i snapshotOfvisibleQuad = visibleQuad; + //Quad2i snapshotOfvisibleQuad = visibleQuad; //bool useVertexArrayRendering = getVBOSupported(); //bool useVertexArrayRendering = false; diff --git a/source/shared_lib/sources/map/map_preview.cpp b/source/shared_lib/sources/map/map_preview.cpp index 3cd5429c..066fa3e5 100644 --- a/source/shared_lib/sources/map/map_preview.cpp +++ b/source/shared_lib/sources/map/map_preview.cpp @@ -922,7 +922,7 @@ void MapPreview::saveToFile(const string &path) { strncpy(header.title, title.c_str(), MAX_TITLE_LENGTH); strncpy(header.author, author.c_str(), MAX_AUTHOR_LENGTH); strncpy(header.version2.short_desc, desc.c_str(), MAX_DESCRIPTION_LENGTH_VERSION2); - header.version2.short_desc[MAX_DESCRIPTION_LENGTH_VERSION2] = 0; + header.version2.short_desc[MAX_DESCRIPTION_LENGTH_VERSION2-1] = 0; header.version2.magic= 0x01020304; header.version2.cliffLevel= cliffLevel; header.version2.cameraHeight= cameraHeight;