Skip to content

Commit

Permalink
Try to fix store user design bug.
Browse files Browse the repository at this point in the history
We now save the user design file every time we
click the save button, rather than when we exit
the game. Open the userdata/mp/templates.json
file to check that your template was correctly
stored.
  • Loading branch information
perim committed Dec 2, 2017
1 parent 1a45f27 commit c693e7c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/design.cpp
Expand Up @@ -3555,6 +3555,8 @@ void intProcessDesign(UDWORD id)
case IDDES_STOREBUTTON:
sCurrDesign.stored = !sCurrDesign.stored; // Invert the current status
saveTemplate();
storeTemplates();
updateStoreButton(sCurrDesign.stored);
break;
case IDDES_SYSTEMBUTTON:
// Add the correct component form
Expand Down

0 comments on commit c693e7c

Please sign in to comment.