Browse Source

- minor fixes

Ivan Savenko 12 years ago
parent
commit
b22d8a007f
2 changed files with 2 additions and 2 deletions
  1. 1 1
      lib/GameConstants.h
  2. 1 1
      lib/Mapping/MapFormatH3M.cpp

+ 1 - 1
lib/GameConstants.h

@@ -203,7 +203,7 @@ DLL_LINKAGE std::ostream & operator << (std::ostream & os, BaseForID<Der> id);
 template<typename Der>
 std::ostream & operator << (std::ostream & os, BaseForID<Der> id)
 {
-	return os << id;
+	return os << id.getNum();
 }
 
 class ArtifactInstanceID : public BaseForID<ArtifactInstanceID>

+ 1 - 1
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;