Not a bug. As soon as any resource hits zero, you lose. Because partisans use 4, you'd have zero military and lose, regardless of also beating the king.