no more crash when saving config in arcm

This commit is contained in:
Zeno Rogue committed 2019-09-12 22:50:13 +02:00
1 parent 5a9f3f57e6
commit f3dd779947
2 files changed
+3

No files matched your search

+1
View File
@@ -1377,6 +1377,7 @@ EX void initgraph() {
#if CAP_CONFIG
loadConfig();
#endif
arcm::current.parse();
#if CAP_COMMANDLINE
arg::read(2);
+2
View File
@@ -508,6 +508,8 @@ EX void initConfig() {
addsaverenum(models::basic_model, "basic model");
addsaver(models::use_atan, "use_atan");
addsaver(arcm::current.symbol, "arcm-symbol", "4^5");
for(int i=0; i<isize(ginf); i++) {
if(ginf[i].flags & qELLIPTIC)
sightranges[i] = M_PI;