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

@ -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);