Fix dangling sCurrentX pointers after the target RAII object has been moved
sCurrentX
added bug label
mentioned in commit a0f72756
merged