Fixed compiler warning (check SM forums for details), fixed compiler crash, seemed to be caused by the string parameter not being defaulted to an empty string, using new String:... had no effect, so I went through and defaulted all String parameters to (not uncluding constant expressions).

This commit is contained in:
Greyscale
2009-05-02 07:09:55 +02:00
parent 0404230fc8
commit 2ec263f2a0
5 changed files with 10 additions and 10 deletions

View File

@ -827,7 +827,7 @@ RestrictCreateGroupWeaponsArray(&Handle:arrayGroupWeapons, const String:weapongr
* @param maxlen Maximum length of the weapon list, the rest is truncated.
* @param separator Separator character between weapon names.
*/
RestrictGetGroupWeapons(const String:groupname[], String:weaponlist[], maxlen, const String:separator[])
RestrictGetGroupWeapons(const String:groupname[], String:weaponlist[] = "", maxlen, const String:separator[])
{
KvRewind(kvWeaponGroups);
KvJumpToKey(kvWeaponGroups, groupname);

View File

@ -218,7 +218,7 @@ bool:WeaponsIsValidWeapon(const String:weapon[])
* @param weapon The weapon name.
* @param display Returns with the display name, is not changed if weapon is invalid.
*/
WeaponGetDisplayName(const String:weapon[], String:display[])
WeaponGetDisplayName(const String:weapon[], String:display[] = "")
{
// Reset keyvalue's traversal stack.
KvRewind(kvWeapons);