1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-06-29 18:07:45 +00:00

correct declare for arrays

This commit is contained in:
Dantestyle 2019-01-06 18:02:28 +01:00
parent caee2ad1e7
commit 33de98df68

View file

@ -197,7 +197,7 @@ createScript( std::shared_ptr< Sapphire::Data::Quest >& pQuestData, std::set< st
cc++;
}
}
rewards += " static constexpr auto RewardItem["+ std::to_string(cc) + "] = { "+ reward +" };\n";
rewards += " uint16_t RewardItem["+ std::to_string(cc) + "] = { "+ reward +" };\n";
reward.clear();
}
@ -217,7 +217,7 @@ createScript( std::shared_ptr< Sapphire::Data::Quest >& pQuestData, std::set< st
cc++;
}
}
rewards += " static constexpr auto RewardItemCount["+ std::to_string(cc) +"] = { "+ reward +" };\n";
rewards += " uint16_t RewardItemCount["+ std::to_string(cc) +"] = { "+ reward +" };\n";
reward.clear();
}
@ -239,7 +239,7 @@ createScript( std::shared_ptr< Sapphire::Data::Quest >& pQuestData, std::set< st
cc++;
}
}
rewards += " static constexpr auto RewardItemOptional[" + std::to_string(cc) + "] = { " + reward + " };\n";
rewards += " uint16_t RewardItemOptional[" + std::to_string(cc) + "] = { " + reward + " };\n";
reward.clear();
}
@ -261,7 +261,7 @@ createScript( std::shared_ptr< Sapphire::Data::Quest >& pQuestData, std::set< st
cc++;
}
}
rewards += " static constexpr auto RewardItemOptionalCount["+ std::to_string(cc) + "] = { "+ reward + " };\n";
rewards += " uint16_t RewardItemOptionalCount["+ std::to_string(cc) + "] = { "+ reward + " };\n";
reward.clear();
}