Explorar o código

One more compile fix, works now fine on Windows.

DjWarmonger %!s(int64=12) %!d(string=hai) anos
pai
achega
d8594576e2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      client/CVideoHandler.cpp

+ 1 - 1
client/CVideoHandler.cpp

@@ -425,7 +425,7 @@ bool CVideoPlayer::open(std::string name)
 
 			std::ofstream out(name, std::ofstream::binary);
 			out.exceptions(std::ifstream::failbit | std::ifstream::badbit);
-			out.write(data.first.get(), data.second);
+			out.write(reinterpret_cast<char*>(data.first.get()), data.second);
 		}
 
 		current->open(name);