@@ -114,7 +114,6 @@ int CMUSHclientApp::PopulateDatabase (void)
114
114
115
115
for (i = 0 ; GlobalOptionsTable [i].pName ; i++)
116
116
{
117
- const char * p = (const char *) this + GlobalOptionsTable [i].iOffset ;
118
117
const int Value = GetProfileInt (" Global prefs" ,
119
118
GlobalOptionsTable [i].pName ,
120
119
GlobalOptionsTable [i].iDefault );
@@ -128,7 +127,6 @@ int CMUSHclientApp::PopulateDatabase (void)
128
127
129
128
for (i = 0 ; AlphaGlobalOptionsTable [i].pName ; i++)
130
129
{
131
- const char * p = (const char *) this + AlphaGlobalOptionsTable [i].iOffset ;
132
130
133
131
// fix up the fixed-pitch font
134
132
if (strcmp (AlphaGlobalOptionsTable [i].pName , " DefaultInputFont" ) == 0 ||
@@ -164,13 +162,6 @@ void CMUSHclientApp::LoadGlobalsFromDatabase (void)
164
162
int i;
165
163
string db_value;
166
164
167
- // for Willfa - make state directory default to plugins directory (whatever that is now) with state\ at the end
168
- for (i = 0 ; AlphaGlobalOptionsTable [i].pName ; i++)
169
- {
170
- if (strcmp (AlphaGlobalOptionsTable [i].pName , " StateFilesDirectory" ) == 0 )
171
- AlphaGlobalOptionsTable [i].sDefault = (LPCTSTR) (App.m_strPluginsDirectory + " state\\ " );
172
- }
173
-
174
165
for (i = 0 ; GlobalOptionsTable [i].pName ; i++)
175
166
{
176
167
const char * p = (const char *) this + GlobalOptionsTable [i].iOffset ;
@@ -197,6 +188,10 @@ void CMUSHclientApp::LoadGlobalsFromDatabase (void)
197
188
198
189
* (CString *) p = db_value.c_str ();
199
190
191
+ // for Willfa - make state directory default to plugins directory (whatever that is now) with state\ at the end
192
+ if (strcmp (AlphaGlobalOptionsTable [i].pName , " StateFilesDirectory" ) == 0 )
193
+ AlphaGlobalOptionsTable [i].sDefault = (LPCTSTR) (App.m_strPluginsDirectory + " state\\ " );
194
+
200
195
};
201
196
202
197
0 commit comments