Преглед на файлове

One more compile fix, works now fine on Windows.

DjWarmonger преди 12 години
родител
ревизия
d8594576e2
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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);