QTfrontend/game.cpp
changeset 379 e4cd3cd209c6
parent 352 4665bfe25470
child 395 641ed71c7c93
equal deleted inserted replaced
378:dde4a4a3e0e1 379:e4cd3cd209c6
   258 	}
   258 	}
   259 	QDataStream stream(&demofile);
   259 	QDataStream stream(&demofile);
   260 	stream.writeRawData(demo->constData(), demo->size());
   260 	stream.writeRawData(demo->constData(), demo->size());
   261 	demofile.close();
   261 	demofile.close();
   262 	delete demo;
   262 	delete demo;
       
   263 	demo=0;
   263 }
   264 }
   264 
   265 
   265 void HWGame::PlayDemo(const QString & demofilename)
   266 void HWGame::PlayDemo(const QString & demofilename)
   266 {
   267 {
   267 	gameType = gtDemo;
   268 	gameType = gtDemo;