diff --git a/lib/GameConstants.h b/lib/GameConstants.h index 88058c044..2ff35e868 100644 --- a/lib/GameConstants.h +++ b/lib/GameConstants.h @@ -203,7 +203,7 @@ DLL_LINKAGE std::ostream & operator << (std::ostream & os, BaseForID id); template std::ostream & operator << (std::ostream & os, BaseForID id) { - return os << id; + return os << id.getNum(); } class ArtifactInstanceID : public BaseForID diff --git a/lib/Mapping/MapFormatH3M.cpp b/lib/Mapping/MapFormatH3M.cpp index eafcca810..5d8e645b4 100644 --- a/lib/Mapping/MapFormatH3M.cpp +++ b/lib/Mapping/MapFormatH3M.cpp @@ -71,7 +71,7 @@ void CMapLoaderH3M::init() result.process_bytes(temp_buffer, temp_size); map->checksum = result.checksum(); - delete temp_buffer; + delete [] temp_buffer; inputStream->seek(0); CStopWatch sw;