Fixed format strings warnings reported by GCC/Clang
See https://forum.zdoom.org/viewtopic.php?t=54541 and https://forum.zdoom.org/viewtopic.php?t=54709
This commit is contained in:
parent
54822c29eb
commit
e825918451
6 changed files with 11 additions and 11 deletions
|
|
@ -2677,13 +2677,13 @@ void FParser::SF_PlayerWeapon()
|
|||
if (playernum==-1) return;
|
||||
if (weaponnum<0 || weaponnum>9)
|
||||
{
|
||||
script_error("weaponnum out of range! %s\n", weaponnum);
|
||||
script_error("weaponnum out of range! %d\n", weaponnum);
|
||||
return;
|
||||
}
|
||||
PClassWeapon * ti = static_cast<PClassWeapon *>(PClass::FindActor(WeaponNames[weaponnum]));
|
||||
if (!ti)
|
||||
{
|
||||
script_error("incompatibility in playerweapon\n", weaponnum);
|
||||
script_error("incompatibility in playerweapon %d\n", weaponnum);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -2758,13 +2758,13 @@ void FParser::SF_PlayerSelectedWeapon()
|
|||
|
||||
if (weaponnum<0 || weaponnum>=9)
|
||||
{
|
||||
script_error("weaponnum out of range! %s\n", weaponnum);
|
||||
script_error("weaponnum out of range! %d\n", weaponnum);
|
||||
return;
|
||||
}
|
||||
PClassWeapon * ti = static_cast<PClassWeapon *>(PClass::FindActor(WeaponNames[weaponnum]));
|
||||
if (!ti)
|
||||
{
|
||||
script_error("incompatibility in playerweapon\n", weaponnum);
|
||||
script_error("incompatibility in playerweapon %d\n", weaponnum);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue