- Fixed Clang compiler errors and some warnings.

This commit is contained in:
Edoardo Prezioso 2016-10-25 16:53:14 +02:00
commit be4ce05aee
4 changed files with 8 additions and 8 deletions

View file

@ -2432,7 +2432,7 @@ DEFINE_CLASS_PROPERTY_PREFIX(powerup, type, S, PowerupGiver)
// Yuck! What was I thinking when I decided to prepend "Power" to the name?
// Now it's too late to change it...
PClassActor *cls = PClass::FindActor(str);
if (cls == NULL || !cls->IsDescendantOf(RUNTIME_CLASS(APowerup)) && !bag.fromZScript)
if (cls == NULL || (!cls->IsDescendantOf(RUNTIME_CLASS(APowerup)) && !bag.fromZScript))
{
FString st;
st.Format("%s%s", strnicmp(str, "power", 5)? "Power" : "", str);