aboutsummaryrefslogtreecommitdiff
path: root/mp/src/game/client/c_func_breakablesurf.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mp/src/game/client/c_func_breakablesurf.cpp')
-rw-r--r--mp/src/game/client/c_func_breakablesurf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mp/src/game/client/c_func_breakablesurf.cpp b/mp/src/game/client/c_func_breakablesurf.cpp
index 03176315..3118cd5e 100644
--- a/mp/src/game/client/c_func_breakablesurf.cpp
+++ b/mp/src/game/client/c_func_breakablesurf.cpp
@@ -154,7 +154,7 @@ private:
Assert( type < NUM_EDGE_STYLES );
Assert( type >= 0 );
// Clear old value
- m_nPanelBits[ w ][ h ] &= ( ~0x03 << 2 );
+ m_nPanelBits[ w ][ h ] &= 0xF0; // ( ~0x03 << 2 ); Left shifting a negative value has undefined behavior. Use the constant 0xF0 instead.
// Insert new value
m_nPanelBits[ w ][ h ] |= ( type << 2 );
}