summaryrefslogtreecommitdiff
path: root/src/npf.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/npf.h')
-rw-r--r--src/npf.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/npf.h b/src/npf.h
index 92268a6d8..5425b5afe 100644
--- a/src/npf.h
+++ b/src/npf.h
@@ -138,10 +138,7 @@ static inline bool NPFGetFlag(const AyStarNode *node, NPFNodeFlag flag)
*/
static inline void NPFSetFlag(AyStarNode *node, NPFNodeFlag flag, bool value)
{
- if (value)
- SetBit(node->user_data[NPF_NODE_FLAGS], flag);
- else
- ClrBit(node->user_data[NPF_NODE_FLAGS], flag);
+ SB(node->user_data[NPF_NODE_FLAGS], flag, 1, value);
}
#endif /* NPF_H */