diff --git a/src/thingdef/thingdef_properties.cpp b/src/thingdef/thingdef_properties.cpp
index f5dc0d91f..5fc607ca4 100644
--- a/src/thingdef/thingdef_properties.cpp
+++ b/src/thingdef/thingdef_properties.cpp
@@ -1772,7 +1772,7 @@ DEFINE_CLASS_PROPERTY(yadjust, F, Weapon)
 DEFINE_CLASS_PROPERTY(bobstyle, S, Weapon)
 {
 	static const char *names[] = { "Normal", "Inverse", "Alpha", "InverseAlpha", "Smooth", "InverseSmooth", NULL };
-	static const int flags[] = { AWeapon::BobNormal,
+	static const int styles[] = { AWeapon::BobNormal,
 		AWeapon::BobInverse, AWeapon::BobAlpha, AWeapon::BobInverseAlpha,
 		AWeapon::BobSmooth, AWeapon::BobInverseSmooth, };
 	PROP_STRING_PARM(id, 0);
@@ -1782,7 +1782,7 @@ DEFINE_CLASS_PROPERTY(bobstyle, S, Weapon)
 		I_Error("Unknown bobstyle %s", id);
 		match = 0;
 	}
-	defaults->BobStyle |= flags[match];
+	defaults->BobStyle = styles[match];
 }
 
 //==========================================================================