Permalink
Browse files

Try to fix store user design bug.

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 c693e7c11249692bd111c8d51acf024aa107c52e
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/design.cpp
View
@@ -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

0 comments on commit c693e7c

Please sign in to comment.