In Terrain Editor, upside where you find Scenario = Players Properties , click it.
A window pops up, check every Fixed Start Location thing
Change the tap of the window to 'Forces', and check 'Fixed Players settings'.
If no one of the above works, create an invisible invulnerable building for each player and put it in an unused place on the map.
Good luck
How does that even relate to the topic?
By the way should always clean leaks no matter what if you can because you fatal at like 1.85GB of ram when wc3 uses that much and since the RAM isn't reset until you restart wc3...
Set UnitGroupPlayer01 = Units Owned by Player 1 (Red)
Set UnitGroupPlayer02 = Units Owned by Player 2 (Blue)
Where i make this variabiles = to player 1 and player 2 ???
Attached is the test map. Run through it (kill blues units, then reload and let yours die - all die fast) and let me know if this is what you had in mind. If it is, copy the triggers into your map. Note that they will only work for Red & Blue players as written.
//\\oo//\\
It will run everytime a unit dies so the leak removal is still needed in that viewpoint.