OSDN Git Service

マップ書き込みできない致命的なエラー改善
authorKillery <Killery@kiritani-no-mac-mini.local>
Thu, 30 Jun 2016 19:17:33 +0000 (04:17 +0900)
committerKillery <Killery@kiritani-no-Mac-mini.local>
Thu, 30 Jun 2016 19:17:33 +0000 (04:17 +0900)
Awars III/MapEditor.h
Awars III/MapEditor.m
Awars III/Title.h
Awars III/Title.m
Awars III/en.lproj/MainMenu.xib

index fdac11f..4399cb8 100644 (file)
@@ -1190,6 +1190,7 @@ NSTimer *timeMapEditor;
 
 -(void)saveMapTFset;
 -(void)initFileDirectoryOthers;
+-(void)initEventGuildList;
 @end
 MapEditor *mapEditor;
 
index ae88332..fc3d567 100755 (executable)
     eventGuildListMA = [NSMutableArray new];
 
     [self initFileDirectoryOthers];
+    [self initEventGuildList];
 }
 
 -(id)init{
 
 -(IBAction)loadMap:(id)sender{
     [self initLoadMapList];
+    [self initEventGuildList];
     [loadMapWindow makeKeyAndOrderFront:nil];
     loadMapChipFlag = true;
 }
 
 -(void)setEventGuildList{
     
-    if([eventGuildBC1 state] != 0){
+    if([eventGuildBC1 state] != 0 && [eventGuildListMA count] > 0){
     for(int i = 0;i < UCN;i++){
         
         MF[MFselectedRow+1].MS.guildListRegist[i] = [[eventGuildListMA[i] valueForKey:@"chk"] intValue];
     
     MF[MFselectedRow+1].MS.guildListRegistNum11 = [eventGuildTF1 intValue];
     MF[MFselectedRow+1].MS.guildListRegistNum12 = [eventGuildTF2 intValue];
-    }else if([eventGuildBC2 state] != 0){
+    }else if([eventGuildBC2 state] != 0 && [eventGuildListMA count] > 0){
         for(int i = 0;i < UCN;i++){
             
             MF[MFselectedRow+1].MS.guildListRegist2[i] = [[eventGuildListMA[i] valueForKey:@"chk"] intValue];
index 4046f2e..f4bb59f 100755 (executable)
@@ -9,6 +9,7 @@
 #import <Foundation/Foundation.h>
 #import "ScenarioList.h"
 #import "SaveDataList.h"
+#import "MapEditor.h"
 bool galleryClickedFlag;
 bool startClickedFlag;
 
index ded9408..880f04e 100755 (executable)
@@ -69,6 +69,7 @@
     windowPoint.x = [TitleWindow frame].origin.x;
     windowPoint.y = [TitleWindow frame].origin.y;
     [MapEditorWindow setFrameOrigin:windowPoint];
+    [mapEditor initEventGuildList];
     [TitleWindow close];
 }
 -(IBAction)ScenarioEditor:(id)sender{
index 4b55917..c3ab6ef 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>