fixed bug with playing EM level with inactive player
[rocksndiamonds.git] / src / game_em / convert.c
index d8a202d6166883b03cc5fbcdbd8987c407a248c8..6b09ece6a7b26ec5a06e9e4975dbdf32d6b1a490 100644 (file)
@@ -404,7 +404,7 @@ void prepare_em_level(void)
   /* assign active players */
   for (i = 0; i < MAX_PLAYERS; i++)
   {
   /* assign active players */
   for (i = 0; i < MAX_PLAYERS; i++)
   {
-    if (ply[i].exists)
+    if (ply[i].exists && isActivePlayer_EM(i))
     {
       if (players_left)
       {
     {
       if (players_left)
       {