<WarningLevel>EnableAllWarnings</WarningLevel>\r
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>\r
<CompileAs>CompileAsC</CompileAs>\r
- <DisableSpecificWarnings>4127;4244;4255;4668;4710;4820;4996;%(DisableSpecificWarnings)</DisableSpecificWarnings>\r
+ <DisableSpecificWarnings>4127;4244;4255;4668;4710;4820;4996;4774;%(DisableSpecificWarnings)</DisableSpecificWarnings>\r
</ClCompile>\r
<Link>\r
<AdditionalDependencies>winmm.lib;wsock32.lib;%(AdditionalDependencies)</AdditionalDependencies>\r
q_ptr->k_idx = (IDX)atoi(zz[8]);
q_ptr->dungeon = (DUNGEON_IDX)atoi(zz[9]);
- if (num > 10)
- q_ptr->flags = atoi(zz[10]);
+ if (num > 10) q_ptr->flags = atoi(zz[10]);
r_ptr = &r_info[q_ptr->r_idx];
if (r_ptr->flags1 & RF1_UNIQUE)
{
int i;
char buf[128];
+ int message_max;
if (h_older_than(2, 2, 0, 75))
u16b num;
/* Total */
rd_u16b(&num);
+ message_max = (int)num;
/* Read the messages */
- for (i = 0; i < num; i++)
+ for (i = 0; i < message_max; i++)
{
/* Read the message */
rd_string(buf, sizeof(buf));
u32b num;
/* Total */
rd_u32b(&num);
+ message_max = (int)num;
/* Read the messages */
- for (i = 0; i < num; i++)
+ for (i = 0; i < message_max; i++)
{
/* Read the message */
rd_string(buf, sizeof(buf));