OSDN Git Service

たち絵バグ修正
authorKillery <Killery@kiritani-no-mac-mini.local>
Tue, 19 Apr 2016 17:21:37 +0000 (02:21 +0900)
committerKillery <Killery@kiritani-no-Mac-mini.local>
Tue, 19 Apr 2016 17:21:37 +0000 (02:21 +0900)
Awars III/StringText.m

index 1148a63..e400a73 100644 (file)
         if (rangeSearch2.location != NSNotFound) {commentSwitch = true;
           
         }else if (rangeSearch.location != NSNotFound || rangeSearch10.location != NSNotFound) {commentSwitch = false;
-            
+            if(!ST){
+                ST = calloc(1, sizeof(STRING));
+                ST->next = calloc(1, sizeof(STRING));
+                STtop = ST;
+            }
             if(STItop) ST->i = STItop;
             STItop = NULL;
             STIcnt = 0;
             if(ST)
             if(ST->S)
                 ST->S = SVtop;
-            if(!ST){
-                ST = calloc(1, sizeof(STRING));
-                ST->next = calloc(1, sizeof(STRING));
-                STtop = ST;
-            }
             if(1){
                 ST->index++;
                 [self AddString:&ST :ST->index];