OSDN Git Service

クラッシュ修正 master workSpace
authorKillery <Killery@kiritani-no-mac-mini.local>
Wed, 3 Aug 2016 06:40:52 +0000 (15:40 +0900)
committerKillery <Killery@kiritani-no-Mac-mini.local>
Wed, 3 Aug 2016 06:40:52 +0000 (15:40 +0900)
Awars III/FieldView.m
Awars III/MapEditor.m
Awars III/ScenarioList.m
Awars III/en.lproj/MainMenu.xib

index ba07230..7d60b03 100755 (executable)
     
     if(bclRdy){
         U = UTop;
-        int i = 1;
-        while(U && AUN[1] > i){i++;
+        
+        while(U->number != AUN[1]){
             U = U->next;
         }
+       
         
-        buildNum[possionX][possionY] = U->C.S->list[crBCL]-1;
+        if(U)
+            buildNum[possionX][possionY] = U->C.S->list[crBCL]-1;
         
         U = UTop;
         bclRdy = false;
index 8d7b33f..24d7753 100755 (executable)
                 if(i == 5 && j == 5  && k == 20){
                     NSLog(@"いまだー");
                 }
+                
+                if([SC[i].nameMAP count] > 0)
                 if([MF[k+1].fileName isEqualToString:SC[i].nameMAP[j]]){
                     MFselectedRow = k;
                     
index 68571c0..a9631ba 100755 (executable)
 
 @implementation ScenarioList
 -(IBAction)startButton:(id)sender{
-    if([scenarioListTV selectedRow] < 0) return;
     
-    scenarioNumb = (int)[scenarioListTV selectedRow];
-    storyNumb = (int)[PUBscenario indexOfSelectedItem] + 1;
+    if([scenarioListTV selectedRow] < 0) return;
     
     startES = true;
     [stringText InitStringList];
-    /*
-    int k = 0;
-    for(int j = 0;j < [SC[storyNumb].sName count];j++){
-        for (int i = 0;i < [scenarioListMA count];i++) {
-            if([[scenarioListMA[scenarioNumb] valueForKey:@"name"] isEqualToString:SC[storyNumb].sName[j]]){
-                goto zOMG;
-                
-            }
-        }
-        k++;
-    }
-    
-    zOMG:
     
-    scenarioNumb = k;
-    */
+    /*
+     int k = 0;
+     for(int j = 0;j < [SC[storyNumb].sName count];j++){
+     for (int i = 0;i < [scenarioListMA count];i++) {
+     if([[scenarioListMA[scenarioNumb] valueForKey:@"name"] isEqualToString:SC[storyNumb].sName[j]]){
+     goto zOMG;
+     
+     }
+     }
+     k++;
+     }
+     
+     zOMG:
+     
+     scenarioNumb = k;
+     */
     MFselectedRow = scenarioNumb + 1;
     [SLPanel close];
     [NSApp stopModal];
             }
         }
     }
+    
+    [scenarioListAC setSelectionIndex:9999];
 
 }
 
index dc88c3e..4be6438 100755 (executable)
                             <autoresizingMask key="autoresizingMask"/>
                         </scroller>
                         <scroller key="verticalScroller" verticalHuggingPriority="750" horizontal="NO" id="10395">
-                            <rect key="frame" x="465" y="1" width="16" height="480"/>
+                            <rect key="frame" x="466" y="1" width="15" height="480"/>
                             <autoresizingMask key="autoresizingMask"/>
                         </scroller>
                     </scrollView>