Browse code

Use [[fallthrough]] attribute.

Naram Qashat authored on 2021/04/05 00:56:42
Showing 1 changed files
... ...
@@ -461,7 +461,7 @@ void Channel::Update()
461 461
 			this->reg.totalLength = this->reg.loopStart + this->reg.length;
462 462
 			this->ampl = AMPL_THRESHOLD;
463 463
 			this->state = ChannelState::Attack;
464
-			// fallthrough
464
+			[[fallthrough]];
465 465
 		case ChannelState::Attack:
466 466
 		{
467 467
 			int newAmpl = this->ampl;