You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 19:41:11 +00:00
Fix SafeNumeric::conditional_increment() for NO_THREADS
(cherry picked from commit b1edb69249)
This commit is contained in:
committed by
Rémi Verschelde
parent
1aa02d5ceb
commit
5a67eefbcf
@@ -249,7 +249,7 @@ public:
|
||||
}
|
||||
|
||||
_ALWAYS_INLINE_ T conditional_increment() {
|
||||
if (value != 0) {
|
||||
if (value == 0) {
|
||||
return 0;
|
||||
} else {
|
||||
return ++value;
|
||||
|
||||
Reference in New Issue
Block a user