Fixes an issue when parsing the weapon info flagset.

This commit is contained in:
Fabian Woltermann committed 2016-08-23 14:37:43 +02:00
1 parent 3e6022b000
commit 444ae43aa4
2 files changed
+2 -5

No files matched your search

+2 -1
View File
@@ -160,7 +160,8 @@ int parse_string_flag_list(Flagset& dest, flag_def_list_new<T> defs [], size_t n
for (size_t j = 0; j < n_defs; j++)
{
if (!stricmp(slp[i], defs[j].name)) {
dest.set(defs[j].def);
if (defs[j].def != T::NUM_VALUES) //Needed due to a few special cases amongst the weapon info flagset
dest.set(defs[j].def);
if (!defs[j].is_special)
string_parsed = true;