1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-27 22:49:25 +02:00

Really fixed the evil bug.

This commit is contained in:
Michał W. Urbańczyk
2009-01-30 22:23:13 +00:00
parent 8868105fac
commit f28c76984c
3 changed files with 10 additions and 5 deletions

View File

@@ -109,6 +109,7 @@ void CVCMIServer::start()
try
{
intpr::shared_memory_object smo(intpr::open_only,"vcmi_memory",intpr::read_write);
smo.truncate(sizeof(ServerReady));
mr = new intpr::mapped_region(smo,intpr::read_write);
sr = (ServerReady*)mr->get_address();
}