Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix crash when placing transporters on the map in a map editor. Close…

…s ticket:3714
  • Loading branch information...
commit 508f26a174fd356b778419dd7c4eeaacfd27d8ac 1 parent d37f527
Per Inge Mathisen authored September 15, 2012

Showing 1 changed file with 11 additions and 1 deletion. Show diff stats Hide diff stats

  1. 12  src/game.cpp
12  src/game.cpp
@@ -4284,7 +4284,17 @@ static bool loadSaveDroid(const char *pFileName, DROID **ppsCurrentDroidLists)
4284 4284
 		}
4285 4285
 		else
4286 4286
 		{
4287  
-			psDroid->psGroup = NULL;
  4287
+			if (psDroid->droidType == DROID_TRANSPORTER
  4288
+			    || psDroid->droidType == DROID_SUPERTRANSPORTER
  4289
+			    || psDroid->droidType == DROID_COMMAND)
  4290
+			{
  4291
+				DROID_GROUP *psGroup = grpCreate();
  4292
+				psGroup->add(psDroid);
  4293
+			}
  4294
+			else
  4295
+			{
  4296
+				psDroid->psGroup = NULL;
  4297
+			}
4288 4298
 		}
4289 4299
 		psDroid->died = ini.value("died", 0).toInt();
4290 4300
 		psDroid->lastEmission = ini.value("lastEmission", 0).toInt();

0 notes on commit 508f26a

Please sign in to comment.
Something went wrong with that request. Please try again.